Add "Add new feed" to main menu
authorThomas Perl <thp@thpinfo.com>
Sat, 12 Jun 2010 22:58:12 +0000 (00:58 +0200)
committerThomas Perl <thp@thpinfo.com>
Sat, 12 Jun 2010 22:58:12 +0000 (00:58 +0200)
This menu item should be in the main menu too,
because it's a feature that might be needed more
often. Of course it's also available in the
subscription manager, but placing it in the main
menu makes it easier accessible.

src/FeedingIt.py

index 62960eb..9b809ce 100644 (file)
@@ -941,7 +941,12 @@ class FeedingIt:
         button.set_label("Mark all as read")
         button.connect("clicked", self.button_markAll)
         menu.append(button)
-        
+
+        button = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
+        button.set_label("Add new feed")
+        button.connect("clicked", lambda b: self.addFeed())
+        menu.append(button)
+
         button = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
         button.set_label("Manage subscriptions")
         button.connect("clicked", self.button_organize_clicked)