diff MainWindow.py @ 56:c82f5538733c

add a menu item to mark all entries in a feed as read
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 23 Jul 2010 04:06:10 +0200
parents 0f9b3e57cff0
children daa2731967fe
line wrap: on
line diff
--- a/MainWindow.py	Tue May 18 03:17:06 2010 +0200
+++ b/MainWindow.py	Fri Jul 23 04:06:10 2010 +0200
@@ -35,6 +35,7 @@
         self.selectedFeed = self.allFeeds[index.row()]
 
         self.ui.actionFeedSettings.setEnabled(True)
+        self.ui.actionMarkFeedRead.setEnabled(True)
         
         self.sortedEntries = self.selectedFeed.entriesSortedByUpdateDate()
         model = DisplayModel(self, self.sortedEntries, FeedEntry.userPresentableString)
@@ -67,6 +68,11 @@
         self.selectedEntry.toggleRead()
         self.session.commit()
         self.ui.feedList.update()
+        
+    def toggleReadOnSelectedFeed(self):
+        self.selectedFeed.toggleRead()
+        self.session.commit()
+        self.ui.feedEntryList.update()
     
     def addFeed(self):
         addFeed = AddFeed(self.session)