aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-26 03:26:23 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-26 03:26:23 +0800
commita1ef272177c238c5e1b6196b3ed4c8f948e236f3 (patch)
treeb9d9adfd5aeb87c469426bf0d64ced4668cb3ffa /src
parentedd48d92ae634d1b32269ddb1d2b3152eb800169 (diff)
downloadgsoc2013-epiphany-a1ef272177c238c5e1b6196b3ed4c8f948e236f3.tar
gsoc2013-epiphany-a1ef272177c238c5e1b6196b3ed4c8f948e236f3.tar.gz
gsoc2013-epiphany-a1ef272177c238c5e1b6196b3ed4c8f948e236f3.tar.bz2
gsoc2013-epiphany-a1ef272177c238c5e1b6196b3ed4c8f948e236f3.tar.lz
gsoc2013-epiphany-a1ef272177c238c5e1b6196b3ed4c8f948e236f3.tar.xz
gsoc2013-epiphany-a1ef272177c238c5e1b6196b3ed4c8f948e236f3.tar.zst
gsoc2013-epiphany-a1ef272177c238c5e1b6196b3ed4c8f948e236f3.zip
Use named icon for the logo in about dialogue.
2004-10-25 Christian Persch <chpe@cvs.gnome.org> * src/window-commands.c: (window_cmd_help_about): Use named icon for the logo in about dialogue.
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c20
1 files changed, 2 insertions, 18 deletions
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 <marco@gnome.org>",
@@ -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);