1
Description: use convenience function for about dialog and fix close button
2
Origin: other, https://bugs.launchpad.net/ubuntu/+source/atomix/+bug/173772
3
Author: Marshall Scorcio <marshall.scorcio@gmail.com>
4
Acked-By: Petter Reinholdtsen <pere@debian.org>
5
Reviewed-By: Guilherme de Siqueira Pastore <gpastore@debian.org>
6
Bug-Debian: http://bugs.debian.org/495714
7
Last-Update: 2013-02-02
10
src/main.c | 21 +++++++++------------
11
1 file changed, 9 insertions(+), 12 deletions(-)
13
diff --git a/src/main.c b/src/main.c
14
index 0b2dd2a..016c9b4 100644
17
@@ -152,8 +152,6 @@ static void verb_EditPreferences_cb (BonoboUIComponent * uic,
18
static void verb_HelpAbout_cb (BonoboUIComponent *uic, gpointer user_data,
23
const char *authors[] =
25
"Guilherme de S. Pastore <gpastore@gnome.org>",
26
@@ -167,16 +165,15 @@ static void verb_HelpAbout_cb (BonoboUIComponent *uic, gpointer user_data,
30
- dlg = gtk_about_dialog_new ();
31
- gtk_about_dialog_set_name (GTK_ABOUT_DIALOG(dlg), "Atomix");
32
- gtk_about_dialog_set_version (GTK_ABOUT_DIALOG(dlg), VERSION);
33
- gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG(dlg), _("A puzzle game about atoms and molecules"));
34
- gtk_about_dialog_set_website (GTK_ABOUT_DIALOG(dlg), "http://www.gnome.org/projects/atomix");
35
- gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG(dlg), authors);
36
- gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG(dlg), artists);
37
- gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG(dlg), _("translator-credits"));
39
- gtk_widget_show (dlg);
40
+ gtk_show_about_dialog(GTK_WINDOW(app->mainwin),
41
+ "program-name", _("Atomix"),
43
+ "comments", _("A puzzle game about atoms and molecules"),
44
+ "website",_("http://wiki.debian.org/Games/Atomix"),
47
+ "translator_credits", _("translator-credits"),
51
static gboolean on_app_destroy_event (GtkWidget *widget, GdkEvent *event,