From 41e481ad4c756f4a0dd0a7cef30f5110748d576f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Tue, 17 May 2011 17:09:16 +0100 Subject: [PATCH] moonshot-window: Add "About" dialog --- src/moonshot-window.vala | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/moonshot-window.vala b/src/moonshot-window.vala index f21e900..de95f27 100644 --- a/src/moonshot-window.vala +++ b/src/moonshot-window.vala @@ -403,6 +403,39 @@ class MainWindow : Window private void on_about_action () { + string[] authors = { + "Javier Jardón ", + null + }; + + const string copyright = "Copyright 2011 JANET"; + + const string license = +" + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +"; + + Gtk.show_about_dialog (this, + "comments", _("Moonshot project UI"), + "copyright", copyright, + "website", "http://www.project-moonshot.org/", + "license", license, + "website-label", _("Visit the Moonshot project web site"), + "authors", authors, + "translator-credits", _("translator-credits"), + null + ); } private Gtk.ActionEntry[] create_actions() { -- 2.1.4