[blam/gtk-builder] TrayIcon: show the unread number in the tooltip at the beginning



commit b83ff9080f41fb7250067a9164a4f509e3da9f56
Author: Carlos Martín Nieto <cmn dwim me>
Date:   Wed Oct 9 19:46:49 2013 +0200

    TrayIcon: show the unread number in the tooltip at the beginning

 src/TrayIcon.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/TrayIcon.cs b/src/TrayIcon.cs
index 430ba58..97471e5 100644
--- a/src/TrayIcon.cs
+++ b/src/TrayIcon.cs
@@ -44,12 +44,12 @@ namespace Blam
                public TrayIcon(ObservableCollection<Channel> channels, ObservableCollection<ChannelGroup> 
groups)
                {
                        IconName = "blam";
-                       Tooltip = Catalog.GetString("Blam News Reader");
+                       //Tooltip = Catalog.GetString("Blam News Reader");
 
                        var changes = Observable
                                .Merge(channels.Select(c => 
Observable.FromEventPattern<PropertyChangedEventArgs>(c, "PropertyChanged")))
                                .Merge(Observable.Merge(groups.Select(grp => 
Observable.FromEventPattern<PropertyChangedEventArgs>(grp, "PropertyChanged"))))
-                               .Select(_ => Unit.Default);
+                               .Select(_ => Unit.Default).StartWith(Unit.Default);
 
                        changes.Subscribe(_ => {
                                var unread = channels.Select(c => c.NrOfUnreadItems).Sum() + groups.Select(g 
=> g.NrOfUnreadItems).Sum();


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