[gnome-nibbles/wip/vala] Add about dialog
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles/wip/vala] Add about dialog
- Date: Tue, 11 Aug 2015 14:12:33 +0000 (UTC)
commit 08fc8e355e4d28457a1f4d51c707b2adf6d029dd
Author: Iulian Radu <iulian radu67 gmail com>
Date: Tue Aug 11 17:12:12 2015 +0300
Add about dialog
src/gnome-nibbles.vala | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 309fef9..86cc0e1 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -59,6 +59,7 @@ public class Nibbles : Gtk.Application
{"start-game", start_game_cb},
{"new-game", new_game_cb},
{"scores", scores_cb},
+ {"about", about_cb},
{"quit", quit}
};
@@ -573,6 +574,39 @@ public class Nibbles : Gtk.Application
dialog.show ();
}
+ private void about_cb ()
+ {
+ const string authors[] = { "Sean MacIsaac",
+ "Ian Peters",
+ "Andreas Røsdal",
+ "Guillaume Beland",
+ "Iulian-Gabriel Radu",
+ null };
+
+ const string documenters[] = { "Kevin Breit",
+ null };
+
+ const string artists[] = { "Allan Day",
+ null };
+
+ Gtk.show_about_dialog (window,
+ "program-name", _("Nibbles"),
+ "logo-icon-name", "gnome-nibbles",
+ "version", VERSION,
+ "comments", _("A worm game for GNOME"),
+ "copyright",
+ "Copyright © 1999–2008 Sean MacIsaac, Ian Peters, Andreas Røsdal\n" +
+ "Copyright © 2009 Guillaume Beland\n" +
+ "Copyright © 2015 Iulian-Gabriel Radu",
+ "license-type", Gtk.License.GPL_2_0,
+ "authors", authors,
+ "documenters", documenters,
+ "artists", artists,
+ "translator-credits", _("translator-credits"),
+ "website", "https://wiki.gnome.org/Apps/Nibbles/"
+ );
+ }
+
public static int main (string[] args)
{
var context = new OptionContext ("");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]