7
public class UnreadNotification
10
static Notification note = new Notification();
12
public UnreadNotification()
14
note = new Notification();
17
public static void NotifyUnreadPosts(int unread, int new_items)
19
/* Same as for the tray icon tooltip */
20
/* Total number of unread items */
21
string str = string.Format (Catalog.GetPluralString ("{0} unread item", "{0} unread items", unread),
24
/* Number of new (not-skipped-over) entries. Gets appended to previous string */
25
str += string.Format(Catalog.GetPluralString("({0} new)", "({0} new)", new_items), new_items);
27
note.IconName = "blam";
28
note.Summary = Catalog.GetString("Feeds refreshed");
30
note.Urgency = Urgency.Normal;