pause right click action works

This commit is contained in:
Zach Tibbitts 2007-03-26 05:33:16 +00:00
parent 96967035cb
commit c3f90c4f80
3 changed files with 793 additions and 757 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,6 +10,7 @@
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="label" translatable="yes">StartPause</property> <property name="label" translatable="yes">StartPause</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<signal name="activate" handler="start_pause"/>
<child internal-child="image"> <child internal-child="image">
<widget class="GtkImage" id="menu-item-image9"> <widget class="GtkImage" id="menu-item-image9">
<property name="visible">True</property> <property name="visible">True</property>

View File

@ -257,12 +257,13 @@ class DelugeGTK:
self.torrent_view = self.wtree.get_widget("torrent_view") self.torrent_view = self.wtree.get_widget("torrent_view")
self.torrent_glade = gtk.glade.XML(dcommon.get_glade_file("torrent_menu.glade"), domain='deluge') self.torrent_glade = gtk.glade.XML(dcommon.get_glade_file("torrent_menu.glade"), domain='deluge')
self.torrent_menu = self.torrent_glade.get_widget("torrent_menu") self.torrent_menu = self.torrent_glade.get_widget("torrent_menu")
self.torrent_glade.signal_autoconnect({"update_tracker": self.update_tracker, self.torrent_glade.signal_autoconnect({ "start_pause": self.start_pause,
"clear_finished": self.clear_finished, "update_tracker": self.update_tracker,
"queue_up": self.q_torrent_up, "clear_finished": self.clear_finished,
"queue_down": self.q_torrent_down, "queue_up": self.q_torrent_up,
"queue_bottom": self.q_to_bottom, "queue_down": self.q_torrent_down,
}) "queue_bottom": self.q_to_bottom,
})
# UID, Q#, Name, Size, Progress, Message, Seeders, Peers, DL, UL, ETA, Share # UID, Q#, Name, Size, Progress, Message, Seeders, Peers, DL, UL, ETA, Share
self.torrent_model = gtk.ListStore(int, int, str, str, float, str, int, int, int, int, int, int, str, float) self.torrent_model = gtk.ListStore(int, int, str, str, float, str, int, int, int, int, int, int, str, float)
self.torrent_view.set_model(self.torrent_model) self.torrent_view.set_model(self.torrent_model)