summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2012-09-29 19:15:49 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2012-09-29 19:15:49 +0100
commit610cd7dd33c9d0f08876c91b77cb4c347871d9c7 (patch)
tree3861f7b7d6b0c16147ac85b50fe7b9c4909295e0
parentbb7b529c294bb8f74ed955286be0f59aca62ed51 (diff)
downloaddeluge-610cd7dd33c9d0f08876c91b77cb4c347871d9c7.zip
deluge-610cd7dd33c9d0f08876c91b77cb4c347871d9c7.tar.gz
deluge-610cd7dd33c9d0f08876c91b77cb4c347871d9c7.tar.bz2
Fix #2104 : Deluge has no indicator title
-rw-r--r--deluge/ui/gtkui/systemtray.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py
index 54113c9..43318f1 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)