From 610cd7dd33c9d0f08876c91b77cb4c347871d9c7 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 29 Sep 2012 19:15:49 +0100 Subject: Fix #2104 : Deluge has no indicator title --- deluge/ui/gtkui/systemtray.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py index 54113c95a..43318f174 100644 --- a/deluge/ui/gtkui/systemtray.py +++ b/deluge/ui/gtkui/systemtray.py @@ -109,6 +109,11 @@ class SystemTray(component.Component): log.debug("Enabling the Application Indicator..") self.indicator = appindicator.Indicator ( "deluge", "deluge", appindicator.CATEGORY_APPLICATION_STATUS) + try: + self.indicator.set_property ("title", _("Deluge")) + except TypeError: + # Catch 'title' property error for previous appindicator versions + pass # Pass the menu to the Application Indicator self.indicator.set_menu(self.tray_menu) -- cgit