From 2c645faf84fb0a66d2bee7552e2cae3f617e4bf6 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 4 Oct 2004 20:53:35 +0000 Subject: Set window icon with gtk_window_set_icon_name(). 2004-10-04 Christian Persch * embed/print-dialog.c: (ephy_print_dialog_new), (ephy_print_setup_dialog_new): Set window icon with gtk_window_set_icon_name(). --- ChangeLog | 7 +++++++ embed/print-dialog.c | 16 ++-------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index b3376093a..2969d225f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-10-04 Christian Persch + + * embed/print-dialog.c: (ephy_print_dialog_new), + (ephy_print_setup_dialog_new): + + Set window icon with gtk_window_set_icon_name(). + 2004-10-04 Christian Persch * embed/downloader-view.c: (downloader_view_build_ui): diff --git a/embed/print-dialog.c b/embed/print-dialog.c index c36bd3d8a..e7b75538d 100755 --- a/embed/print-dialog.c +++ b/embed/print-dialog.c @@ -357,7 +357,6 @@ ephy_print_dialog_new (GtkWidget *parent, { EphyDialog *dialog; GtkWidget *window, *button; - GdkPixbuf *icon; dialog = EPHY_DIALOG (g_object_new (EPHY_TYPE_EMBED_DIALOG, "embed", embed, @@ -375,12 +374,7 @@ ephy_print_dialog_new (GtkWidget *parent, NULL); window = ephy_dialog_get_control (dialog, print_props[WINDOW_PROP].id); - icon = gtk_widget_render_icon (window, - GTK_STOCK_PRINT, - GTK_ICON_SIZE_MENU, - "print_dialog"); - gtk_window_set_icon (GTK_WINDOW (window), icon); - g_object_unref (icon); + gtk_window_set_icon_name (GTK_WINDOW (window), GTK_STOCK_PRINT); button = ephy_dialog_get_control (dialog, print_props[BROWSE_PROP].id); gtk_widget_set_sensitive (button, eel_gconf_key_is_writable (CONF_PRINT_FILE)); @@ -393,7 +387,6 @@ ephy_print_setup_dialog_new (void) { EphyDialog *dialog; GtkWidget *window; - GdkPixbuf *icon; dialog = EPHY_DIALOG (g_object_new (EPHY_TYPE_DIALOG, NULL)); @@ -407,12 +400,7 @@ ephy_print_setup_dialog_new (void) n_paper_format_enum, paper_format_enum); window = ephy_dialog_get_control (dialog, setup_props[SETUP_WINDOW_PROP].id); - icon = gtk_widget_render_icon (window, - STOCK_PRINT_SETUP, - GTK_ICON_SIZE_MENU, - "print_setup_dialog"); - gtk_window_set_icon (GTK_WINDOW (window), icon); - g_object_unref (icon); + gtk_window_set_icon_name (GTK_WINDOW (window), STOCK_PRINT_SETUP); return dialog; } -- cgit v1.2.3