[blam] Item: Add an ``Updated'' delgate
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] Item: Add an ``Updated'' delgate
- Date: Tue, 14 Sep 2010 19:38:34 +0000 (UTC)
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]