From 13c8b7335b1aacf79bb4f1e735f6b88bd8dd6e08 Mon Sep 17 00:00:00 2001 From: Adam Hooper Date: Fri, 17 Dec 2004 20:02:42 +0000 Subject: Use gtk_show_about_dialog(), and handle urls and mailto. --- src/window-commands.c | 46 ++++++++++++---------------------------------- 1 file changed, 12 insertions(+), 34 deletions(-) (limited to 'src/window-commands.c') diff --git a/src/window-commands.c b/src/window-commands.c index 0f89e32b7..171e16263 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -52,11 +52,11 @@ #include #include #include +#include #include #include #include #include -#include #include enum @@ -879,9 +879,6 @@ void window_cmd_help_about (GtkAction *action, GtkWidget *window) { - static GtkWidget *about = NULL; - GtkWidget** ptr; - static char *authors[] = { "Marco Pesenti Gritti ", "Xan Lopez ", @@ -890,42 +887,23 @@ window_cmd_help_about (GtkAction *action, NULL }; - char *documenters[] = { + static char *documenters[] = { "Patanjali Somayaji ", "David Bordoley ", "Piers Cornwell ", NULL }; - if (about != NULL) - { - gtk_window_present (GTK_WINDOW (about)); - - return; - } - - - about = g_object_new (GTK_TYPE_ABOUT_DIALOG, - "name", _("Epiphany"), - "version", VERSION, - "copyright", "Copyright \xc2\xa9 2002-2004 Marco Pesenti Gritti", - "authors", authors, - "documenters", documenters, - "translator-credits", _("translator-credits"), - "logo-icon-name", "web-browser", - NULL); - - gtk_window_set_icon_name (GTK_WINDOW (about), "web-browser"); - - g_signal_connect (about, "response", G_CALLBACK (gtk_widget_destroy), NULL); - - gtk_window_set_transient_for (GTK_WINDOW (about), GTK_WINDOW (window)); - gtk_window_set_destroy_with_parent (GTK_WINDOW (about), TRUE); - - ptr = &about; - g_object_add_weak_pointer (G_OBJECT (about), (gpointer *)ptr); - - gtk_window_present (GTK_WINDOW (about)); + gtk_show_about_dialog (GTK_WINDOW (window), + "name", _("Epiphany"), + "version", VERSION, + "copyright", "Copyright \xc2\xa9 2002-2004 Marco Pesenti Gritti", + "authors", authors, + "documenters", documenters, + "translator-credits", _("translator-credits"), + "logo-icon-name", "web-browser", + "website", "http://www.gnome.org/projects/epiphany", + NULL); } void -- cgit v1.2.3