Merge 09482c46c4
into 61451d4c3c
This commit is contained in:
commit
3f2caa66c2
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue