From b8d8e52f0effbf76ff909f88932098d4daf4336e Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 25 Nov 2014 17:19:11 +0100 Subject: Replace gtkstock icon usage --- src/tools/marco-window-demo.c | 4 ++-- src/ui/theme-viewer.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/tools/marco-window-demo.c b/src/tools/marco-window-demo.c index b28e0818..8cfaf952 100644 --- a/src/tools/marco-window-demo.c +++ b/src/tools/marco-window-demo.c @@ -516,7 +516,7 @@ splashscreen_cb (gpointer callback_data, vbox = gtk_vbox_new (FALSE, 0); - image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG); + image = gtk_image_new_from_icon_name ("dialog-information", GTK_ICON_SIZE_DIALOG); gtk_box_pack_start (GTK_BOX (vbox), image, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), focus_label (window), FALSE, FALSE, 0); @@ -563,7 +563,7 @@ make_dock (int type) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); set_gtk_window_type (GTK_WINDOW (window), "_NET_WM_WINDOW_TYPE_DOCK"); - image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG); + image = gtk_image_new_from_icon_name ("dialog-information", GTK_ICON_SIZE_DIALOG); gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (box), focus_label (window), FALSE, FALSE, 0); diff --git a/src/ui/theme-viewer.c b/src/ui/theme-viewer.c index 6bc6953a..0a5e4eb2 100644 --- a/src/ui/theme-viewer.c +++ b/src/ui/theme-viewer.c @@ -248,8 +248,8 @@ dialog_contents (void) update_spacings (vbox, action_area); label = gtk_label_new (_("This is a sample message in a sample dialog")); - image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_INFO, - GTK_ICON_SIZE_DIALOG); + image = gtk_image_new_from_icon_name ("dialog-information", + GTK_ICON_SIZE_DIALOG); #if GTK_CHECK_VERSION (3, 0, 0) gtk_widget_set_halign (image, GTK_ALIGN_CENTER); gtk_widget_set_valign (image, GTK_ALIGN_START); -- cgit v1.2.1