blam r634 - trunk/src
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r634 - trunk/src
- Date: Mon, 8 Sep 2008 15:27:22 +0000 (UTC)
Author: cmartin
Date: Mon Sep 8 15:27:22 2008
New Revision: 634
URL: http://svn.gnome.org/viewvc/blam?rev=634&view=rev
Log:
Check for read in another feed before adding an item.
Modified:
trunk/src/Channel.cs
trunk/src/ChannelCollection.cs
Modified: trunk/src/Channel.cs
==============================================================================
--- trunk/src/Channel.cs (original)
+++ trunk/src/Channel.cs Mon Sep 8 15:27:22 2008
@@ -162,6 +162,7 @@
if (item == null) {
item = new Item (id, rssItem);
item.Channel = this;
+ item.Unread = !Application.TheApp.CCollection.CheckItemIdReadInAllChannels(id);
mItems.Add (item);
return true;
Modified: trunk/src/ChannelCollection.cs
==============================================================================
--- trunk/src/ChannelCollection.cs (original)
+++ trunk/src/ChannelCollection.cs Mon Sep 8 15:27:22 2008
@@ -261,6 +261,17 @@
}
}
+ public bool CheckItemIdReadInAllChannels(string id)
+ {
+ foreach(IChannel ch in mChannels){
+ Item item = ch.GetItem(id);
+ if(item != null){
+ return true;
+ }
+ }
+ return false;
+ }
+
private void UpdateThread ()
{
while (true) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]