diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/window-commands.c | 12 |
2 files changed, 17 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2003-04-26 Xan Lopez <xan@masilla.org> + + * src/window-commands.c: (window_cmd_help_about): + + Use epiphany logo in about window. + 2003-04-25 Marco Pesenti Gritti <marco@it.gnome.org> * lib/egg/egg-toolbars-model.c: diff --git a/src/window-commands.c b/src/window-commands.c index 032ce0775..04eb2bebb 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -48,6 +48,7 @@ #include <libgnomeui/gnome-about.h> #include <libgnomeui/gnome-stock-icons.h> #include <libgnome/gnome-help.h> +#include <libgnome/gnome-program.h> #include <gtk/gtkmessagedialog.h> #include <gtk/gtkeditable.h> @@ -711,6 +712,8 @@ window_cmd_help_about (EggAction *action, { static GtkWidget *about = NULL; GdkPixbuf *icon; + const char *icon_path; + GdkPixbuf *logo; static gchar *authors[] = { "Marco Pesenti Gritti <mpeseng@tin.it>", @@ -732,6 +735,11 @@ window_cmd_help_about (EggAction *action, return; } + icon_path = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_APP_PIXMAP, + "epiphany.png", TRUE, NULL); + logo = gdk_pixbuf_new_from_file (icon_path, NULL); + g_return_if_fail (logo != NULL); + about = gnome_about_new( "Epiphany", VERSION, "Copyright \xc2\xa9 2002-2003 Marco Pesenti Gritti", @@ -739,7 +747,9 @@ window_cmd_help_about (EggAction *action, (const char **)authors, (const char **)documenters, strcmp (translator_credits, "translator_credits") != 0 ? translator_credits : NULL, - NULL); + logo); + + g_object_unref (logo); gtk_window_set_transient_for (GTK_WINDOW (about), GTK_WINDOW (window)); |