[blam] Item: SetUnread always works on all channels
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] Item: SetUnread always works on all channels
- Date: Sat, 26 Mar 2011 11:34:35 +0000 (UTC)
commit cb8061a4e18415f1beefa402824f8c2bdb5728e1
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date: Fri Mar 25 11:21:17 2011 +0100
Item: SetUnread always works on all channels
Signed-off-by: Carlos MartÃn Nieto <carlos cmartin tk>
src/Application.cs | 2 +-
src/Channel.cs | 2 +-
src/Item.cs | 2 +-
src/ItemList.cs | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/Application.cs b/src/Application.cs
index f127d23..5557b63 100644
--- a/src/Application.cs
+++ b/src/Application.cs
@@ -371,7 +371,7 @@ namespace Imendio.Blam {
}
// Toggle unread status
- item.SetUnread (!item.Unread, false);
+ item.SetUnread (!item.Unread);
}
public void EditEntryKeywordsActivated (object obj, EventArgs args)
diff --git a/src/Channel.cs b/src/Channel.cs
index 3627073..657966d 100644
--- a/src/Channel.cs
+++ b/src/Channel.cs
@@ -196,7 +196,7 @@ namespace Imendio.Blam {
foreach(string id in item_list){
item = store.Items[id] as Item;
if (item.Unread) {
- item.SetUnread (false, false);
+ item.SetUnread (false);
updated = true;
EmitUpdated();
}
diff --git a/src/Item.cs b/src/Item.cs
index 7c793f8..35be5f8 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -136,7 +136,7 @@ namespace Imendio.Blam {
return true;
}
- public void SetUnread (bool unread, bool inAllChannels)
+ public void SetUnread (bool unread)
{
if (Unread != unread) {
Unread = unread;
diff --git a/src/ItemList.cs b/src/ItemList.cs
index c1b721a..2488efa 100644
--- a/src/ItemList.cs
+++ b/src/ItemList.cs
@@ -228,7 +228,7 @@ namespace Imendio.Blam {
lastItem = item;
lastTimeout = GLib.Timeout.Add(readTimeout, new GLib.TimeoutHandler (SetToRead));
} else {
- item.SetUnread(false, true);
+ item.SetUnread(false);
}
}
}
@@ -236,7 +236,7 @@ namespace Imendio.Blam {
private bool SetToRead()
{
if(lastItem == GetSelected())
- lastItem.SetUnread(false, true);
+ lastItem.SetUnread(false);
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]