[blam] Item: Add an ``Updated'' delgate



commit 8b589c28fedf7ae29a778eb04d34ae61e74a192b
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Tue Sep 14 20:33:11 2010 +0100

    Item: Add an ``Updated'' delgate

 src/Item.cs |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/Item.cs b/src/Item.cs
index 11b7e0f..332e221 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -18,6 +18,8 @@ namespace Imendio.Blam {
 
         public SyndicationContent exposed_text;
 
+        public delegate void Updated(Item item);
+
 		public string Keywords {
 			get {
 				return keywords;
@@ -65,13 +67,9 @@ namespace Imendio.Blam {
 		{
 			if (Unread != unread) {
 				Unread = unread;
+                Updated(this);
                 /* FIXME: Re-implement this */
-				//Application.TheApp.CCollection.Update (this.Channel);
 				Application.TheApp.ItemList.Update (this);
-
-				if (unread != true && inAllChannels) {
-					//Application.TheApp.CCollection.MarkItemIdAsReadInAllChannels (this.Channel,
-					//															  this.Id);
 				}
 			}
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]