From 39ad5a35964a81917b256a03c7ee37ba21bccdba Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 6 Jul 2011 18:54:40 +0100 Subject: [PATCH] Moved edit trackers dialog to GtkBuilder. Min PyGTK version is now 2.16. --- deluge/ui/gtkui/createtorrentdialog.py | 14 +- deluge/ui/gtkui/edittrackersdialog.py | 40 +- .../glade/add_torrent_dialog.infohash.ui | 2 +- deluge/ui/gtkui/glade/add_torrent_dialog.ui | 2 +- .../ui/gtkui/glade/add_torrent_dialog.url.ui | 2 +- .../gtkui/glade/connection_manager.addhost.ui | 3 +- .../glade/connection_manager.askpassword.ui | 2 +- deluge/ui/gtkui/glade/connection_manager.ui | 2 +- .../glade/create_torrent_dialog.progress.ui | 2 +- .../create_torrent_dialog.remote_path.ui | 2 +- .../create_torrent_dialog.remote_save.ui | 2 +- .../ui/gtkui/glade/create_torrent_dialog.ui | 4 +- deluge/ui/gtkui/glade/edit_trackers.add.ui | 193 ++++++ deluge/ui/gtkui/glade/edit_trackers.edit.ui | 186 ++++++ deluge/ui/gtkui/glade/edit_trackers.glade | 566 ------------------ deluge/ui/gtkui/glade/edit_trackers.ui | 264 ++++++++ 16 files changed, 686 insertions(+), 600 deletions(-) create mode 100644 deluge/ui/gtkui/glade/edit_trackers.add.ui create mode 100644 deluge/ui/gtkui/glade/edit_trackers.edit.ui delete mode 100644 deluge/ui/gtkui/glade/edit_trackers.glade create mode 100644 deluge/ui/gtkui/glade/edit_trackers.ui diff --git a/deluge/ui/gtkui/createtorrentdialog.py b/deluge/ui/gtkui/createtorrentdialog.py index 8f71f3977..acfc06097 100644 --- a/deluge/ui/gtkui/createtorrentdialog.py +++ b/deluge/ui/gtkui/createtorrentdialog.py @@ -334,7 +334,7 @@ class CreateTorrentDialog: self._on_create_torrent_progress(piece_count, num_pieces) if piece_count == num_pieces: from twisted.internet import reactor - reactor.callLater(0.5, torrent_created) + reactor.callLater(0.5, torrent_created) # pylint: disable-msg=E1101 client.register_event_handler("CreateTorrentProgressEvent", on_create_torrent_progress_event) @@ -428,13 +428,13 @@ class CreateTorrentDialog: def _on_button_add_clicked(self, widget): log.debug("_on_button_add_clicked") - glade = gtk.glade.XML( - deluge.common.resource_filename( - "deluge.ui.gtkui", - os.path.join("glade", "edit_trackers.glade"))) - dialog = glade.get_widget("add_tracker_dialog") + builder = gtk.Builder() + builder.add_from_file(deluge.common.resource_filename( + "deluge.ui.gtkui", os.path.join("glade", "edit_trackers.ui") + )) + dialog = builder.get_object("add_tracker_dialog") dialog.set_transient_for(self.dialog) - textview = glade.get_widget("textview_trackers") + textview = builder.get_object("textview_trackers") if self.config["createtorrent.trackers"]: textview.get_buffer().set_text("\n".join(self.config["createtorrent.trackers"])) else: diff --git a/deluge/ui/gtkui/edittrackersdialog.py b/deluge/ui/gtkui/edittrackersdialog.py index 8ece78641..89de26792 100644 --- a/deluge/ui/gtkui/edittrackersdialog.py +++ b/deluge/ui/gtkui/edittrackersdialog.py @@ -35,7 +35,6 @@ import os.path import gtk -import gtk.glade import logging from twisted.internet import defer @@ -49,14 +48,25 @@ log = logging.getLogger(__name__) class EditTrackersDialog: def __init__(self, torrent_id, parent=None): self.torrent_id = torrent_id - self.glade = gtk.glade.XML(deluge.common.resource_filename( - "deluge.ui.gtkui", os.path.join("glade", "edit_trackers.glade")) - ) - self.dialog = self.glade.get_widget("edit_trackers_dialog") - self.treeview = self.glade.get_widget("tracker_treeview") - self.add_tracker_dialog = self.glade.get_widget("add_tracker_dialog") + self.builder = gtk.Builder() + # Main dialog + self.builder.add_from_file(deluge.common.resource_filename( + "deluge.ui.gtkui", os.path.join("glade", "edit_trackers.ui") + )) + # add tracker dialog + self.builder.add_from_file(deluge.common.resource_filename( + "deluge.ui.gtkui", os.path.join("glade", "edit_trackers.add.ui") + )) + # edit tracker dialog + self.builder.add_from_file(deluge.common.resource_filename( + "deluge.ui.gtkui", os.path.join("glade", "edit_trackers.edit.ui") + )) + + self.dialog = self.builder.get_object("edit_trackers_dialog") + self.treeview = self.builder.get_object("tracker_treeview") + self.add_tracker_dialog = self.builder.get_object("add_tracker_dialog") self.add_tracker_dialog.set_transient_for(self.dialog) - self.edit_tracker_entry = self.glade.get_widget("edit_tracker_entry") + self.edit_tracker_entry = self.builder.get_object("edit_tracker_entry") self.edit_tracker_entry.set_transient_for(self.dialog) self.dialog.set_icon(common.get_deluge_icon()) @@ -64,7 +74,7 @@ class EditTrackersDialog: self.dialog.set_transient_for(parent) # Connect the signals - self.glade.signal_autoconnect({ + self.builder.connect_signals({ "on_button_up_clicked": self.on_button_up_clicked, "on_button_add_clicked": self.on_button_add_clicked, "on_button_edit_clicked": self.on_button_edit_clicked, @@ -149,7 +159,7 @@ class EditTrackersDialog: log.debug("on_button_add_clicked") # Show the add tracker dialog self.add_tracker_dialog.show() - self.glade.get_widget("textview_trackers").grab_focus() + self.builder.get_object("textview_trackers").grab_focus() def on_button_remove_clicked(self, widget): log.debug("on_button_remove_clicked") @@ -163,9 +173,9 @@ class EditTrackersDialog: selected = self.get_selected() if selected: tracker = self.liststore.get_value(selected, 1) - self.glade.get_widget("entry_edit_tracker").set_text(tracker) + self.builder.get_object("entry_edit_tracker").set_text(tracker) self.edit_tracker_entry.show() - self.glade.get_widget("edit_tracker_entry").grab_focus() + self.builder.get_object("edit_tracker_entry").grab_focus() def on_button_edit_cancel_clicked(self, widget): log.debug("on_button_edit_cancel_clicked") @@ -174,7 +184,7 @@ class EditTrackersDialog: def on_button_edit_ok_clicked(self, widget): log.debug("on_button_edit_ok_clicked") selected = self.get_selected() - tracker = self.glade.get_widget("entry_edit_tracker").get_text() + tracker = self.builder.get_object("entry_edit_tracker").get_text() self.liststore.set_value(selected, 1, tracker) self.edit_tracker_entry.hide() @@ -204,7 +214,7 @@ class EditTrackersDialog: log.debug("on_button_add_ok_clicked") # Create a list of trackers from the textview widget - textview = self.glade.get_widget("textview_trackers") + textview = self.builder.get_object("textview_trackers") trackers = [] b = textview.get_buffer() lines = b.get_text(b.get_start_iter(), b.get_end_iter()).strip().split("\n") @@ -239,5 +249,5 @@ class EditTrackersDialog: log.debug("on_button_add_cancel_clicked") # Clear the entry widget and hide the dialog b = gtk.TextBuffer() - self.glade.get_widget("textview_trackers").set_buffer(b) + self.builder.get_object("textview_trackers").set_buffer(b) self.add_tracker_dialog.hide() diff --git a/deluge/ui/gtkui/glade/add_torrent_dialog.infohash.ui b/deluge/ui/gtkui/glade/add_torrent_dialog.infohash.ui index 59d554cca..a73eae2e9 100644 --- a/deluge/ui/gtkui/glade/add_torrent_dialog.infohash.ui +++ b/deluge/ui/gtkui/glade/add_torrent_dialog.infohash.ui @@ -1,6 +1,6 @@ - + 462 diff --git a/deluge/ui/gtkui/glade/add_torrent_dialog.ui b/deluge/ui/gtkui/glade/add_torrent_dialog.ui index f6d1c7c48..fd7224034 100644 --- a/deluge/ui/gtkui/glade/add_torrent_dialog.ui +++ b/deluge/ui/gtkui/glade/add_torrent_dialog.ui @@ -1,6 +1,6 @@ - + -1 diff --git a/deluge/ui/gtkui/glade/add_torrent_dialog.url.ui b/deluge/ui/gtkui/glade/add_torrent_dialog.url.ui index b438a81ca..67e7e4122 100644 --- a/deluge/ui/gtkui/glade/add_torrent_dialog.url.ui +++ b/deluge/ui/gtkui/glade/add_torrent_dialog.url.ui @@ -1,6 +1,6 @@ - + 462 diff --git a/deluge/ui/gtkui/glade/connection_manager.addhost.ui b/deluge/ui/gtkui/glade/connection_manager.addhost.ui index fd50c52e2..6b2853eea 100644 --- a/deluge/ui/gtkui/glade/connection_manager.addhost.ui +++ b/deluge/ui/gtkui/glade/connection_manager.addhost.ui @@ -1,6 +1,6 @@ - + False @@ -151,7 +151,6 @@ False True True - 1 True diff --git a/deluge/ui/gtkui/glade/connection_manager.askpassword.ui b/deluge/ui/gtkui/glade/connection_manager.askpassword.ui index fdc79ec77..dc17fcc3e 100644 --- a/deluge/ui/gtkui/glade/connection_manager.askpassword.ui +++ b/deluge/ui/gtkui/glade/connection_manager.askpassword.ui @@ -1,6 +1,6 @@ - + False diff --git a/deluge/ui/gtkui/glade/connection_manager.ui b/deluge/ui/gtkui/glade/connection_manager.ui index c403d3d09..c10c3acd8 100644 --- a/deluge/ui/gtkui/glade/connection_manager.ui +++ b/deluge/ui/gtkui/glade/connection_manager.ui @@ -1,6 +1,6 @@ - + False diff --git a/deluge/ui/gtkui/glade/create_torrent_dialog.progress.ui b/deluge/ui/gtkui/glade/create_torrent_dialog.progress.ui index 2896159db..2d0eb6510 100644 --- a/deluge/ui/gtkui/glade/create_torrent_dialog.progress.ui +++ b/deluge/ui/gtkui/glade/create_torrent_dialog.progress.ui @@ -1,6 +1,6 @@ - + False diff --git a/deluge/ui/gtkui/glade/create_torrent_dialog.remote_path.ui b/deluge/ui/gtkui/glade/create_torrent_dialog.remote_path.ui index 9286d16f2..b2c1c1ec9 100644 --- a/deluge/ui/gtkui/glade/create_torrent_dialog.remote_path.ui +++ b/deluge/ui/gtkui/glade/create_torrent_dialog.remote_path.ui @@ -1,6 +1,6 @@ - + 462 diff --git a/deluge/ui/gtkui/glade/create_torrent_dialog.remote_save.ui b/deluge/ui/gtkui/glade/create_torrent_dialog.remote_save.ui index 294301535..3ed3d1f25 100644 --- a/deluge/ui/gtkui/glade/create_torrent_dialog.remote_save.ui +++ b/deluge/ui/gtkui/glade/create_torrent_dialog.remote_save.ui @@ -1,6 +1,6 @@ - + 462 diff --git a/deluge/ui/gtkui/glade/create_torrent_dialog.ui b/deluge/ui/gtkui/glade/create_torrent_dialog.ui index 327a05d3d..928164d6e 100644 --- a/deluge/ui/gtkui/glade/create_torrent_dialog.ui +++ b/deluge/ui/gtkui/glade/create_torrent_dialog.ui @@ -1,6 +1,6 @@ - + False @@ -814,7 +814,7 @@ - + diff --git a/deluge/ui/gtkui/glade/edit_trackers.add.ui b/deluge/ui/gtkui/glade/edit_trackers.add.ui new file mode 100644 index 000000000..e64ef8e18 --- /dev/null +++ b/deluge/ui/gtkui/glade/edit_trackers.add.ui @@ -0,0 +1,193 @@ + + + + + + 400 + 200 + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + Add Tracker + center-on-parent + True + dialog + False + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + end + + + gtk-cancel + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + False + False + 0 + + + + + gtk-ok + True + True + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + False + False + 1 + + + + + False + True + end + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + gtk-add + + + False + False + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + <b>Add Trackers</b> + True + + + False + False + 1 + + + + + False + False + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + False + True + 1 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0 + 0 + Trackers: + + + False + True + 0 + + + + + True + True + automatic + automatic + in + + + True + True + 1 + 1 + False + + + + + True + True + 1 + + + + + True + True + 2 + + + + + True + True + 1 + + + + + + button_add_cancel + button_add_ok + + + diff --git a/deluge/ui/gtkui/glade/edit_trackers.edit.ui b/deluge/ui/gtkui/glade/edit_trackers.edit.ui new file mode 100644 index 000000000..33531aaba --- /dev/null +++ b/deluge/ui/gtkui/glade/edit_trackers.edit.ui @@ -0,0 +1,186 @@ + + + + + + 400 + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + Edit Tracker + center-on-parent + True + dialog + False + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + end + + + gtk-cancel + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + False + False + 0 + + + + + gtk-ok + True + True + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + False + False + 1 + + + + + False + True + end + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + gtk-edit + + + False + False + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + <b>Edit Tracker</b> + True + + + False + False + 1 + + + + + False + False + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + False + True + 1 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Tracker: + + + False + False + 0 + + + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + True + True + False + False + True + True + + + True + True + 1 + + + + + False + False + 2 + + + + + True + True + 1 + + + + + + button_add_cancel1 + button_add_ok1 + + + diff --git a/deluge/ui/gtkui/glade/edit_trackers.glade b/deluge/ui/gtkui/glade/edit_trackers.glade deleted file mode 100644 index 14d802a21..000000000 --- a/deluge/ui/gtkui/glade/edit_trackers.glade +++ /dev/null @@ -1,566 +0,0 @@ - - - - - - 400 - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - Edit Trackers - center-on-parent - 400 - True - dialog - False - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 2 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 10 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - gtk-edit - - - False - False - 0 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0.05000000074505806 - 10 - <big><b>Edit Trackers</b></big> - True - - - False - False - 1 - - - - - False - False - 0 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - automatic - automatic - in - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - - - - - 0 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 1 - center - - - gtk-go-up - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 0 - - - - - gtk-add - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 1 - - - - - gtk-edit - True - True - True - True - - - - False - False - 2 - - - - - gtk-remove - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 3 - - - - - gtk-go-down - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 4 - - - - - False - False - 1 - - - - - 1 - - - - - 1 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - end - - - gtk-cancel - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 0 - - - - - gtk-ok - 1 - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 1 - - - - - False - end - 0 - - - - - - - 400 - 200 - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - Add Tracker - center-on-parent - True - dialog - False - False - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 2 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - gtk-add - - - False - False - 0 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - <b>Add Trackers</b> - True - - - False - False - 1 - - - - - False - False - 0 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - - - False - 1 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 0 - 0 - Trackers: - - - False - 0 - - - - - True - True - automatic - automatic - in - - - True - True - 1 - 1 - False - - - - - 1 - - - - - 2 - - - - - 1 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - end - - - gtk-cancel - -6 - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 0 - - - - - gtk-ok - -5 - True - True - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 1 - - - - - False - end - 0 - - - - - - - 400 - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - Edit Tracker - center-on-parent - True - dialog - False - False - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 2 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - gtk-edit - - - False - False - 0 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - <b>Edit Tracker</b> - True - - - False - False - 1 - - - - - False - False - 0 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - - - False - 1 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - Tracker: - - - False - False - 0 - - - - - True - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - 1 - - - - - False - False - 2 - - - - - 1 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - end - - - gtk-cancel - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 0 - - - - - gtk-ok - 1 - True - True - True - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - True - - - - False - False - 1 - - - - - False - end - 0 - - - - - - diff --git a/deluge/ui/gtkui/glade/edit_trackers.ui b/deluge/ui/gtkui/glade/edit_trackers.ui new file mode 100644 index 000000000..817e0b16c --- /dev/null +++ b/deluge/ui/gtkui/glade/edit_trackers.ui @@ -0,0 +1,264 @@ + + + + + + 400 + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + Edit Trackers + center-on-parent + 400 + True + dialog + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + end + + + gtk-cancel + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + + False + False + 0 + + + + + gtk-ok + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + + False + False + 1 + + + + + False + True + end + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 10 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + gtk-edit + + + False + False + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 0.05000000074505806 + 10 + <big><b>Edit Trackers</b></big> + True + + + False + False + 1 + + + + + False + False + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + automatic + automatic + in + + + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + + + True + True + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 1 + center + + + gtk-go-up + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + + False + False + 0 + + + + + gtk-add + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + + False + False + 1 + + + + + gtk-edit + True + True + True + False + True + + + + False + False + 2 + + + + + gtk-remove + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + + False + False + 3 + + + + + gtk-go-down + True + True + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + False + True + + + + False + False + 4 + + + + + False + False + 1 + + + + + True + True + 1 + + + + + True + True + 1 + + + + + + button_cancel + button_ok + + +