[Banshee-List] tray icon tooltip patch



Hello,

Here is a simple patch against the latest cvs for displaying current
pos / total time in tray icon tooltip like in rhythmbox and it seems
to work:)

Good day,
Doğacan Güney
? traytime.patch
? burn-sharp/.deps
? burn-sharp/.libs
? burn-sharp/glue.lo
? burn-sharp/libnautilusburnglue.la
? libbanshee/.deps
? libbanshee/.libs
? libbanshee/cd-detect.lo
? libbanshee/cd-rip.lo
? libbanshee/gst-encode.lo
? libbanshee/gst-init.lo
? libbanshee/gst-misc.lo
? libbanshee/gst-player-engine.lo
? libbanshee/libbanshee.la
? libbanshee/xing/.deps
? po/.intltool-merge-cache
? src/.deps
? src/.libs
Index: src/PlayerInterface.cs
===================================================================
RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v
retrieving revision 1.83
diff -p -u -2 -r1.83 PlayerInterface.cs
--- src/PlayerInterface.cs	2 Nov 2005 19:49:14 -0000	1.83
+++ src/PlayerInterface.cs	2 Nov 2005 21:16:32 -0000
@@ -567,4 +567,8 @@ namespace Banshee
         {
             LabelInfo.Markup = "<span size=\"small\">" + GLib.Markup.EscapeText(text) + "</span>";
+            if(trayIcon != null && Core.Instance.Player.Playing)
+                trayIcon.Tooltip = Core.Instance.Player.Track.Artist
+                                    + " - " + Core.Instance.Player.Track.Title 
+                                    + "\n" + text;
         }
           




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