Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-mono-tools.git;a=commitdiff;h=a4c5504f7740946aba8e286c040549f842b8fc9b

commit a4c5504f7740946aba8e286c040549f842b8fc9b
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Aug 31 18:53:05 2010 +0200

*can start control center with systray icon

diff --git a/frugal-mono-tools/Main.cs b/frugal-mono-tools/Main.cs
index 82d61a8..5452ab1 100644
--- a/frugal-mono-tools/Main.cs
+++ b/frugal-mono-tools/Main.cs
@@ -71,10 +71,16 @@ namespace frugalmonotools
// Create the popup menu, on right click.
static void OnTrayIconPopup (object o, EventArgs args) {
Menu popupMenu = new Menu();
+                               ImageMenuItem menuItemcc = new ImageMenuItem 
("Start Control Center");
+                               Gtk.Image ccimg = new Gtk.Image(Stock.Execute, 
IconSize.Menu);
+                               menuItemcc.Image = ccimg;
+                               popupMenu.Add(menuItemcc);
+
ImageMenuItem menuItemQuit = new ImageMenuItem ("Quit");
Gtk.Image appimg = new Gtk.Image(Stock.Quit, IconSize.Menu);
menuItemQuit.Image = appimg;
popupMenu.Add(menuItemQuit);
+                               menuItemcc.Activated += delegate { 
Outils.Excecute("frugal-mono-tools","",false); };
// Quit the application when quit has been clicked.
menuItemQuit.Activated += delegate { Application.Quit(); };
popupMenu.ShowAll();
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to