[gnome-boxes] add about dialog



commit 3cde8ef2d62ad5f6e2ad5767f907efa5d9423919
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Fri Jan 6 18:48:34 2012 +0100

    add about dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667435

 src/app.vala |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index d998f96..e5274a5 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -70,6 +70,30 @@ private class Boxes.App: Boxes.UI {
         action_properties.activate.connect (() => { ui_state = UIState.PROPERTIES; });
         application.add_action (action_properties);
 
+        action = new GLib.SimpleAction ("about", null);
+        action.activate.connect (() => {
+            string[] authors = {
+                "Zeeshan Ali (Khattak) <zeeshanak gnome org>",
+                "Marc-Andrà Lureau <marcandre lureau gmail com>"
+            };
+            string[] artists = {
+                "Jon McCann <jmccann redhat com>",
+                "Jakub Steiner <jsteiner redhat com>"
+            };
+
+            Gtk.show_about_dialog (window,
+                                   "artists", artists,
+                                   "authors", authors,
+                                   "comments", "A simple GNOME 3 application to access remote or virtual systems",
+                                   "copyright", "Copyright 2011 Red Hat, Inc.",
+                                   "license-type", Gtk.License.LGPL_2_1,
+                                   "logo-icon-name", "gnome-boxes",
+                                   "version", Config.BUILD_VERSION,
+                                   "website", "http://live.gnome.org/Boxes";,
+                                   "wrap-license", true);
+        });
+        application.add_action (action);
+
         var menu = new GLib.Menu ();
         menu.append (_("New"), "app.new");
 
@@ -78,6 +102,7 @@ private class Boxes.App: Boxes.UI {
         display_section.append (_("Fullscreen"), "app.display.fullscreen");
         menu.append_section (null, display_section);
 
+        menu.append (_("About Boxes"), "app.about");
         menu.append (_("Quit"), "app.quit");
 
         application.set_app_menu (menu);



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