From 8a3c47eea2e81d11991522a1434a3a7f66d757fd Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 20 Jun 2007 19:19:59 +0000 Subject: [PATCH] add "remove torrent" to right-click menu --- glade/torrent_menu.glade | 16 ++++++++++++++++ setup.py | 4 ++-- src/interface.py | 3 ++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/glade/torrent_menu.glade b/glade/torrent_menu.glade index 6a3d1d377..2f1566ea1 100644 --- a/glade/torrent_menu.glade +++ b/glade/torrent_menu.glade @@ -4,6 +4,22 @@ True + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Remove Torrent + True + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + gtk-remove + + + + True diff --git a/setup.py b/setup.py index 70fb35bd0..49363f9fb 100644 --- a/setup.py +++ b/setup.py @@ -144,8 +144,8 @@ if boosttype == "nomt": 'boost_thread', 'z', 'pthread', 'ssl'] print 'Libraries nomt' elif boosttype == "mt": - librariestype = ['boost_filesystem-mt', 'boost_date_time-mt', - 'boost_thread-mt', 'z', 'pthread', 'ssl'] + librariestype = ['boost_filesystem', 'boost_date_time', + 'boost_thread', 'z', 'pthread', 'ssl'] print 'Libraries mt' deluge_core = Extension('deluge_core', diff --git a/src/interface.py b/src/interface.py index 7efdbeb7a..62c166dcc 100644 --- a/src/interface.py +++ b/src/interface.py @@ -292,7 +292,8 @@ class DelugeGTK: self.torrent_view = self.wtree.get_widget("torrent_view") self.torrent_glade = gtk.glade.XML(common.get_glade_file("torrent_menu.glade"), domain='deluge') self.torrent_menu = self.torrent_glade.get_widget("torrent_menu") - self.torrent_glade.signal_autoconnect({ "start_pause": self.start_pause, + self.torrent_glade.signal_autoconnect({ "remove_torrent": self.remove_torrent_clicked, + "start_pause": self.start_pause, "update_tracker": self.update_tracker, "clear_finished": self.clear_finished, "queue_up": self.q_torrent_up,