Actually use icon
This commit is contained in:
parent
27fb60cc26
commit
50b1e7748a
|
@ -16,6 +16,8 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import appindicator_replacement as appindicator
|
import appindicator_replacement as appindicator
|
||||||
|
|
||||||
|
from appindicator_replacement import get_icon_filename
|
||||||
|
|
||||||
##This is to get --version to work
|
##This is to get --version to work
|
||||||
try:
|
try:
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
@ -42,6 +44,7 @@ class HackerNewsApp:
|
||||||
self.ind = appindicator.Indicator ("Hacker Tray", "hacker-tray", appindicator.CATEGORY_APPLICATION_STATUS)
|
self.ind = appindicator.Indicator ("Hacker Tray", "hacker-tray", appindicator.CATEGORY_APPLICATION_STATUS)
|
||||||
self.ind.set_status (appindicator.STATUS_ACTIVE)
|
self.ind.set_status (appindicator.STATUS_ACTIVE)
|
||||||
self.ind.set_label("Y")
|
self.ind.set_label("Y")
|
||||||
|
self.ind.set_icon(get_icon_filename("hacker-tray.png"))
|
||||||
|
|
||||||
# create a menu
|
# create a menu
|
||||||
self.menu = gtk.Menu()
|
self.menu = gtk.Menu()
|
||||||
|
|
Loading…
Reference in New Issue