Actually use icon

This commit is contained in:
Aaron Hill 2013-12-09 06:59:25 -05:00
parent 27fb60cc26
commit 50b1e7748a
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,8 @@ try:
except ImportError:
import appindicator_replacement as appindicator
from appindicator_replacement import get_icon_filename
##This is to get --version to work
try:
import pkg_resources
@ -42,6 +44,7 @@ class HackerNewsApp:
self.ind = appindicator.Indicator ("Hacker Tray", "hacker-tray", appindicator.CATEGORY_APPLICATION_STATUS)
self.ind.set_status (appindicator.STATUS_ACTIVE)
self.ind.set_label("Y")
self.ind.set_icon(get_icon_filename("hacker-tray.png"))
# create a menu
self.menu = gtk.Menu()