From 2d27ce1bd23d5db03749c0e79da51049ad7a0d3c Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 18 May 2007 02:38:53 +0000 Subject: [PATCH] this fixes the second problem in ticket #193 "Start / Pause" should change when button is pressed --- src/interface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/interface.py b/src/interface.py index 29b627f3e..01b3b857e 100644 --- a/src/interface.py +++ b/src/interface.py @@ -196,7 +196,6 @@ class DelugeGTK: def build_tray_icon(self): self.tray_icon = gtk.status_icon_new_from_file(common.get_pixmap("deluge32.png")) self.tray_menu = gtk.Menu() - item_show = gtk.MenuItem(_("Show / Hide Window")) item_add = gtk.ImageMenuItem(_("Add Torrent")) item_clear = gtk.ImageMenuItem(_("Clear Finished")) @@ -638,8 +637,11 @@ class DelugeGTK: try: if self.manager.is_user_paused(self.get_selected_torrent()): self.wtree.get_widget("toolbutton_pause").set_stock_id(gtk.STOCK_MEDIA_PLAY) + self.wtree.get_widget("toolbutton_pause").set_label("Play") else: self.wtree.get_widget("toolbutton_pause").set_stock_id(gtk.STOCK_MEDIA_PAUSE) + self.wtree.get_widget("toolbutton_pause").set_label(_("Pause")) + except KeyError: pass