[Xfce4-commits] <xfce4-notes-plugin:master> New About menu item in the window menu

Mike Massonnet noreply at xfce.org
Tue Dec 29 14:36:01 CET 2009


Updating branch refs/heads/master
         to df8e57970c84013ca6ecafd5d5179dc79e4492bb (commit)
       from 5bb95bf8023e3b185f2ca60c7c094b8531b3ef5a (commit)

commit df8e57970c84013ca6ecafd5d5179dc79e4492bb
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Tue Dec 29 14:32:48 2009 +0100

    New About menu item in the window menu

 ChangeLog            |    4 ++++
 lib/application.vala |    3 +++
 lib/window.vala      |    6 +++++-
 3 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 465f21d..84ce304 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-12-29  Mike Massonnet <mmassonnet at xfce.org>
 
+New About menu item in the window menu
+
+2009-12-29  Mike Massonnet <mmassonnet at xfce.org>
+
 Move the Properties menu item from the window menu at the bottom
 
 2009-12-28  Mike Massonnet <mmassonnet at xfce.org>
diff --git a/lib/application.vala b/lib/application.vala
index 6de492d..4e42bff 100644
--- a/lib/application.vala
+++ b/lib/application.vala
@@ -170,6 +170,9 @@ namespace Xnp {
 				else if (action == "properties") {
 					open_settings_dialog ();
 				}
+				else if (action == "about") {
+					open_about_dialog ();
+				}
 			};
 			window.save_data += (win, note) => {
 				save_note (win, note);
diff --git a/lib/window.vala b/lib/window.vala
index 5b6d18d..fe78696 100644
--- a/lib/window.vala
+++ b/lib/window.vala
@@ -741,7 +741,7 @@ namespace Xnp {
 			((Gtk.CheckMenuItem)mi).toggled += (o) => { sticky = o.active; };
 			menu.append (mi);
 
-			/* Settings dialog */
+			/* Settings/About dialog */
 			mi = new Gtk.SeparatorMenuItem ();
 			menu.append (mi);
 
@@ -749,6 +749,10 @@ namespace Xnp {
 			mi.activate += () => { action ("properties"); };
 			menu.append (mi);
 
+			mi = new Gtk.ImageMenuItem.from_stock (Gtk.STOCK_ABOUT, null);
+			mi.activate += () => { action ("about"); };
+			menu.append (mi);
+
 			return menu;
 		}
 



More information about the Xfce4-commits mailing list