Fix #2104 : Deluge has no indicator title

This commit is contained in:
Calum Lind 2012-09-29 19:15:49 +01:00
parent d030850638
commit 47958f708f
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,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)