Adds a menu separator

This commit is contained in:
Abhay Rana 2013-11-28 09:32:54 +05:30
parent 6ea5e7a54f
commit e3b9f5d239
2 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,6 @@ because nw doesn't support AppIndicators yet.
- Ideally app-memory should be persistent (save on disk)
- Auto Start
- Convert to a Python Module
- Add a menu separator between news and preferences.
- Try to convert right click to comments link
##Author Information

View File

@ -22,6 +22,10 @@ class HackerNewsApp:
self.menu = gtk.Menu()
# create items for the menu - labels, checkboxes, radio buttons and images are supported:
menuSeparator = gtk.SeparatorMenuItem()
menuSeparator.show()
self.menu.append(menuSeparator)
btnRefresh = gtk.MenuItem("Refresh")
btnRefresh.show()
btnRefresh.connect("activate", self.refresh)