aboutsummaryrefslogtreecommitdiffstats
path: root/embed/print-dialog.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-05 04:53:35 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-05 04:53:35 +0800
commit2c645faf84fb0a66d2bee7552e2cae3f617e4bf6 (patch)
tree8440c181c2f69c042bf21b755b99fe1fc409a06e /embed/print-dialog.c
parent3279267d7355538532e7d4b831aaaea5fcb482d6 (diff)
downloadgsoc2013-epiphany-2c645faf84fb0a66d2bee7552e2cae3f617e4bf6.tar
gsoc2013-epiphany-2c645faf84fb0a66d2bee7552e2cae3f617e4bf6.tar.gz
gsoc2013-epiphany-2c645faf84fb0a66d2bee7552e2cae3f617e4bf6.tar.bz2
gsoc2013-epiphany-2c645faf84fb0a66d2bee7552e2cae3f617e4bf6.tar.lz
gsoc2013-epiphany-2c645faf84fb0a66d2bee7552e2cae3f617e4bf6.tar.xz
gsoc2013-epiphany-2c645faf84fb0a66d2bee7552e2cae3f617e4bf6.tar.zst
gsoc2013-epiphany-2c645faf84fb0a66d2bee7552e2cae3f617e4bf6.zip
Set window icon with gtk_window_set_icon_name().
2004-10-04 Christian Persch <chpe@cvs.gnome.org> * embed/print-dialog.c: (ephy_print_dialog_new), (ephy_print_setup_dialog_new): Set window icon with gtk_window_set_icon_name().
Diffstat (limited to 'embed/print-dialog.c')
-rwxr-xr-xembed/print-dialog.c16
1 files changed, 2 insertions, 14 deletions
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;
}