From ead53f3c886a49197f9610bbe1e6ad926b6489ca Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 28 Nov 2008 01:14:29 +0000 Subject: [PATCH] fix remove dialog for multiple torrents --- deluge/ui/gtkui/glade/remove_torrent_dialog.glade | 7 ++++--- deluge/ui/gtkui/removetorrentdialog.py | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/deluge/ui/gtkui/glade/remove_torrent_dialog.glade b/deluge/ui/gtkui/glade/remove_torrent_dialog.glade index 3e8e7b357..f6fb62c2f 100644 --- a/deluge/ui/gtkui/glade/remove_torrent_dialog.glade +++ b/deluge/ui/gtkui/glade/remove_torrent_dialog.glade @@ -1,6 +1,6 @@ - + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK @@ -72,6 +72,7 @@ False False 5 + 1 @@ -110,7 +111,7 @@ - + True 0 Remove With _Data @@ -148,7 +149,7 @@ - + True 0 Remove _Torrent diff --git a/deluge/ui/gtkui/removetorrentdialog.py b/deluge/ui/gtkui/removetorrentdialog.py index 9c2cf24cf..89ec6a4a6 100644 --- a/deluge/ui/gtkui/removetorrentdialog.py +++ b/deluge/ui/gtkui/removetorrentdialog.py @@ -59,8 +59,8 @@ class RemoveTorrentDialog(object): if len(self.__torrent_ids) > 1: # We need to pluralize the dialog label_title = glade.get_widget("label_title") - button_ok = glade.get_widget("button_ok") - button_data = glade.get_widget("button_data") + button_ok = glade.get_widget("button_ok_label") + button_data = glade.get_widget("button_data_label") def pluralize_torrents(text): plural_torrent = _("Torrents")