This commit is contained in:
vikas sardana 2013-11-30 13:37:06 -08:00
commit 3f2caa66c2
1 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,13 @@ class HackerNewsApp:
menuSeparator = gtk.SeparatorMenuItem()
menuSeparator.show()
self.menu.append(menuSeparator)
#open hacker news
btnHnLink = gtk.MenuItem("Hacker News")
btnHnLink.show()
btnHnLink.connect("activate", self.showHnLink)
self.menu.append(btnHnLink)
btnAbout = gtk.MenuItem("About")
btnAbout.show()
@ -66,6 +73,9 @@ class HackerNewsApp:
def showAbout(self, widget):
webbrowser.open("https://github.com/captn3m0/hackertray/")
def showHnLink(self, widget):
webbrowser.open("https://news.ycombinator.com/")
''' Handler for the quit button'''
#ToDo: Handle keyboard interrupt properly
def quit(self, widget, data=None):