Mageia Bugzilla – Attachment 4932 Details for
Bug 12590
atomix package: "Close" button in Help::About dialog does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
fix for about window
atomix-2.14.0-mga-deb-about.patch (text/plain), 2.02 KB, created by
Alex Loginov
on 2014-02-04 23:31:58 CET
(
hide
)
Description:
fix for about window
Filename:
MIME Type:
Creator:
Alex Loginov
Created:
2014-02-04 23:31:58 CET
Size:
2.02 KB
patch
obsolete
>Description: use convenience function for about dialog and fix close button >Origin: other, https://bugs.launchpad.net/ubuntu/+source/atomix/+bug/173772 >Author: Marshall Scorcio <marshall.scorcio@gmail.com> >Acked-By: Petter Reinholdtsen <pere@debian.org> >Reviewed-By: Guilherme de Siqueira Pastore <gpastore@debian.org> >Bug-Debian: http://bugs.debian.org/495714 >Last-Update: 2013-02-02 > >--- > src/main.c | 21 +++++++++------------ > 1 file changed, 9 insertions(+), 12 deletions(-) > >diff --git a/src/main.c b/src/main.c >index 0b2dd2a..016c9b4 100644 >--- a/src/main.c >+++ b/src/main.c >@@ -152,8 +152,6 @@ static void verb_EditPreferences_cb (BonoboUIComponent * uic, > static void verb_HelpAbout_cb (BonoboUIComponent *uic, gpointer user_data, > const char *cname) > { >- GtkWidget *dlg; >- > const char *authors[] = > { > "Guilherme de S. Pastore <gpastore@gnome.org>", >@@ -167,16 +165,15 @@ static void verb_HelpAbout_cb (BonoboUIComponent *uic, gpointer user_data, > NULL > }; > >- dlg = gtk_about_dialog_new (); >- gtk_about_dialog_set_name (GTK_ABOUT_DIALOG(dlg), "Atomix"); >- gtk_about_dialog_set_version (GTK_ABOUT_DIALOG(dlg), VERSION); >- gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG(dlg), _("A puzzle game about atoms and molecules")); >- gtk_about_dialog_set_website (GTK_ABOUT_DIALOG(dlg), "http://www.gnome.org/projects/atomix"); >- gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG(dlg), authors); >- gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG(dlg), artists); >- gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG(dlg), _("translator-credits")); >- >- gtk_widget_show (dlg); >+ gtk_show_about_dialog(GTK_WINDOW(app->mainwin), >+ "program-name", _("Atomix"), >+ "version", VERSION, >+ "comments", _("A puzzle game about atoms and molecules"), >+ "website",_("https://github.com/GNOME/atomix"), >+ "authors", authors, >+ "artists", artists, >+ "translator_credits", _("translator-credits"), >+ NULL); > } > > static gboolean on_app_destroy_event (GtkWidget *widget, GdkEvent *event,
Description: use convenience function for about dialog and fix close button Origin: other, https://bugs.launchpad.net/ubuntu/+source/atomix/+bug/173772 Author: Marshall Scorcio <marshall.scorcio@gmail.com> Acked-By: Petter Reinholdtsen <pere@debian.org> Reviewed-By: Guilherme de Siqueira Pastore <gpastore@debian.org> Bug-Debian: http://bugs.debian.org/495714 Last-Update: 2013-02-02 --- src/main.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/main.c b/src/main.c index 0b2dd2a..016c9b4 100644 --- a/src/main.c +++ b/src/main.c @@ -152,8 +152,6 @@ static void verb_EditPreferences_cb (BonoboUIComponent * uic, static void verb_HelpAbout_cb (BonoboUIComponent *uic, gpointer user_data, const char *cname) { - GtkWidget *dlg; - const char *authors[] = { "Guilherme de S. Pastore <gpastore@gnome.org>", @@ -167,16 +165,15 @@ static void verb_HelpAbout_cb (BonoboUIComponent *uic, gpointer user_data, NULL }; - dlg = gtk_about_dialog_new (); - gtk_about_dialog_set_name (GTK_ABOUT_DIALOG(dlg), "Atomix"); - gtk_about_dialog_set_version (GTK_ABOUT_DIALOG(dlg), VERSION); - gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG(dlg), _("A puzzle game about atoms and molecules")); - gtk_about_dialog_set_website (GTK_ABOUT_DIALOG(dlg), "http://www.gnome.org/projects/atomix"); - gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG(dlg), authors); - gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG(dlg), artists); - gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG(dlg), _("translator-credits")); - - gtk_widget_show (dlg); + gtk_show_about_dialog(GTK_WINDOW(app->mainwin), + "program-name", _("Atomix"), + "version", VERSION, + "comments", _("A puzzle game about atoms and molecules"), + "website",_("https://github.com/GNOME/atomix"), + "authors", authors, + "artists", artists, + "translator_credits", _("translator-credits"), + NULL); } static gboolean on_app_destroy_event (GtkWidget *widget, GdkEvent *event,
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12590
: 4932 |
4933
|
4934