[Muine] TrayIcon: Two little changes



Hi,

First post to the list, so here's a quick "thank you" to the people
writing my favorite music player! :)

However, I got a little annoyed by the Muine tray icon behaving
differently from most of the other tray icons (e.g. Liferea, Gaim,
Firestarter etc.), where Button1 toggles the visible state of the
window, so I changed the case statement in TrayIcon.cs to do just that
(Button2 now does nothing and Button3 still pops up the menu).

I also modified TrayIcon.xml so I can finally quit Muine from the tray
icon's menu.

Both changes are really trivial, but for me they improved the plug-in
quite a lot. Maybe someone else finds this useful too and/or wants to
integrate this in the default tray icon plugin.

Cheers,
Michael

-- 
web citizen428 net                                 citizen428 gentoo org
http://citizen428.net/                http://dev.gentoo.org/~citizen428/
GnuPG key: 0x90CA09E3/4D21 916E DBCE 72B8 CDC5  BD87 DE2D 91A2 90CA 09E3
--- TrayIcon.cs.old	2005-09-26 23:02:54.000000000 +0200
+++ TrayIcon.cs	2005-09-27 00:37:38.000000000 +0200
@@ -201,7 +201,11 @@
 
                         switch (args.Event.Button)
                         {
-                        case 1:
+                        case 1:                         
+                                player.SetWindowVisible (!player.WindowVisible, args.Event.Time);
+
+                                break;
+                                
                         case 3:
                                 icon.State = StateType.Active;
 
@@ -213,10 +217,7 @@
                                 
                                 break;
 
-                        case 2:
-                                player.SetWindowVisible (!player.WindowVisible, args.Event.Time);
-
-                                break;
+                        
 
                         default:
                                 break;
--- TrayIcon.xml.old	2005-09-27 15:58:42.000000000 +0200
+++ TrayIcon.xml	2005-09-27 15:58:50.000000000 +0200
@@ -9,5 +9,6 @@
     <menuitem action="PlayAlbum" />
     <separator />
     <menuitem action="ToggleVisible" />
+    <menuitem action="Quit" />
   </popup>
 </ui>

Attachment: pgpZBMUR3sBLm.pgp
Description: PGP signature



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