Mercurial > hg > Feedworm
changeset 59:daa2731967fe
Marking all articles in a feed as read doesn't toggle any more ... it marks all articles as read.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 23 Jul 2010 17:29:22 +0200 |
parents | dcee24702dd7 |
children | d063e4814357 |
files | Feed.py FeedEntry.py MainWindow.py Ui_MainWindow.ui |
diffstat | 4 files changed, 14 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/Feed.py Fri Jul 23 17:24:32 2010 +0200 +++ b/Feed.py Fri Jul 23 17:29:22 2010 +0200 @@ -30,6 +30,6 @@ delta = timedelta(minutes=self.update_interval) self.next_update = datetime.now() + delta - def toggleRead(self): + def markAllEntriesRead(self): for entry in self.entries: - entry.toggleRead() \ No newline at end of file + entry.markRead() \ No newline at end of file
--- a/FeedEntry.py Fri Jul 23 17:24:32 2010 +0200 +++ b/FeedEntry.py Fri Jul 23 17:29:22 2010 +0200 @@ -22,6 +22,12 @@ def toggleRead(self): if self.read: - self.read = 0 + self.markUnread() else: - self.read = 1 + self.markRead() + + def markRead(self): + self.read = 1 + + def markUnread(self): + self.read = 0 \ No newline at end of file
--- a/MainWindow.py Fri Jul 23 17:24:32 2010 +0200 +++ b/MainWindow.py Fri Jul 23 17:29:22 2010 +0200 @@ -69,8 +69,8 @@ self.session.commit() self.ui.feedList.update() - def toggleReadOnSelectedFeed(self): - self.selectedFeed.toggleRead() + def markSelectedFeedRead(self): + self.selectedFeed.markAllEntriesRead() self.session.commit() self.ui.feedEntryList.update()
--- a/Ui_MainWindow.ui Fri Jul 23 17:24:32 2010 +0200 +++ b/Ui_MainWindow.ui Fri Jul 23 17:29:22 2010 +0200 @@ -355,7 +355,7 @@ <sender>actionMarkFeedRead</sender> <signal>activated()</signal> <receiver>MainWindow</receiver> - <slot>toggleReadOnSelectedFeed()</slot> + <slot>markSelectedFeedRead()</slot> <hints> <hint type="sourcelabel"> <x>-1</x> @@ -377,6 +377,6 @@ <slot>openLinkFromSelectedEntry()</slot> <slot>showPreferences()</slot> <slot>showFeedSettings()</slot> - <slot>toggleReadOnSelectedFeed()</slot> + <slot>markSelectedFeedRead()</slot> </slots> </ui>