From a1ef272177c238c5e1b6196b3ed4c8f948e236f3 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 25 Oct 2004 19:26:23 +0000 Subject: Use named icon for the logo in about dialogue. 2004-10-25 Christian Persch * src/window-commands.c: (window_cmd_help_about): Use named icon for the logo in about dialogue. --- ChangeLog | 6 ++++++ src/window-commands.c | 20 ++------------------ 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index 84ce40e18..bfe7b7b00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-10-25 Christian Persch + + * src/window-commands.c: (window_cmd_help_about): + + Use named icon for the logo in about dialogue. + 2004-10-25 Christian Persch * src/ephy-extensions-manager.c: (ephy_extensions_manager_init), diff --git a/src/window-commands.c b/src/window-commands.c index 43b43f608..e26969c0d 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -929,8 +929,6 @@ window_cmd_help_about (GtkAction *action, { static GtkWidget *about = NULL; GtkWidget** ptr; - GdkPixbuf *icon = NULL; - int size = 48; static char *authors[] = { "Marco Pesenti Gritti ", @@ -954,15 +952,6 @@ window_cmd_help_about (GtkAction *action, return; } - /* FIXME multihead: use the icon theme for the correct screen, not for the default screen */ - gtk_icon_size_lookup_for_settings (gtk_settings_get_default (), - GTK_ICON_SIZE_DIALOG, &size, NULL); - icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), - "web-browser", size, 0 , NULL); - if (icon == NULL) - { - g_warning ("Web browser gnome icon not found"); - } about = g_object_new (GTK_TYPE_ABOUT_DIALOG, "name", _("Epiphany"), @@ -971,21 +960,16 @@ window_cmd_help_about (GtkAction *action, "authors", authors, "documenters", documenters, "translator-credits", _("translator-credits"), - "logo", icon, + "logo-icon-name", "web-browser", NULL); - if (icon != NULL) - { - g_object_unref (icon); - } + 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); - gtk_window_set_icon_name (GTK_WINDOW (about), "web-browser"); - ptr = &about; g_object_add_weak_pointer (G_OBJECT (about), (gpointer *)ptr); -- cgit v1.2.3