[Muine] [PATCH]: Quit entry in NotificationArea



	Hi! Attached is a little patch adding a Quit entry to the
Notification Area Icon. I think this is a "Good Thing (tm)" and more
consistent with other gnome apps.

Salu2

-- 
Fernando Herrera de las Heras
Onírica: análisis, diseño e implantación de soluciones informáticas
http://www.onirica.com
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/muine/ChangeLog,v
retrieving revision 1.323
diff -u -u -r1.323 ChangeLog
--- ChangeLog	20 Jun 2004 18:59:39 -0000	1.323
+++ ChangeLog	21 Jun 2004 10:19:12 -0000
@@ -1,3 +1,10 @@
+2004-06-21  Fernando Herrera  <fherrera onirica com>
+
+	* src/NotificationAreaIcon.cs:
+	* src/PlaylistWindow.cs:
+
+	Add a quit entry to the NotificationAreaIcon.
+
 2004-06-19  Fernando Herrera  <fherrera onirica com>
 2004-06-20  Jorn Baayen  <jbaayen gnome org>
 
Index: src/NotificationAreaIcon.cs
===================================================================
RCS file: /cvs/gnome/muine/src/NotificationAreaIcon.cs,v
retrieving revision 1.22
diff -u -u -r1.22 NotificationAreaIcon.cs
--- src/NotificationAreaIcon.cs	18 Jun 2004 19:33:16 -0000	1.22
+++ src/NotificationAreaIcon.cs	21 Jun 2004 10:19:16 -0000
@@ -43,6 +43,7 @@
 	public ImageMenuItem play_song_menu_item;
 	public ImageMenuItem play_album_menu_item;
 	public MenuItem show_window_menu_item;
+	public ImageMenuItem quit_menu_item;
 
 	private bool button_down = false;
 
@@ -105,6 +106,13 @@
 
 		show_window_menu_item = new MenuItem (Muine.Catalog.GetString ("Show _Window"));
 		menu.Append (show_window_menu_item);
+
+		sep = new SeparatorMenuItem ();
+		menu.Append (sep);
+
+		quit_menu_item = new ImageMenuItem (Muine.Catalog.GetString ("_Quit"));
+		quit_menu_item.Image = new Gtk.Image (Stock.Quit, IconSize.Menu);
+		menu.Append (quit_menu_item);
 
 		menu.ShowAll ();
 	}
Index: src/PlaylistWindow.cs
===================================================================
RCS file: /cvs/gnome/muine/src/PlaylistWindow.cs,v
retrieving revision 1.126
diff -u -u -r1.126 PlaylistWindow.cs
--- src/PlaylistWindow.cs	20 Jun 2004 18:59:39 -0000	1.126
+++ src/PlaylistWindow.cs	21 Jun 2004 10:19:25 -0000
@@ -403,6 +403,7 @@
 		icon.play_song_menu_item.Activated += new EventHandler (HandleAddSongCommand);
 		icon.play_album_menu_item.Activated += new EventHandler (HandleAddAlbumCommand);
 		icon.show_window_menu_item.Activated += new EventHandler (HandleToggleWindowVisibilityCommand);
+		icon.quit_menu_item.Activated += new EventHandler (HandleQuitCommand);
 	}
 
 	private Gdk.Pixbuf empty_pixbuf;


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