aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-07-24 00:40:20 +0200
committerRobert Tari <robert@tari.in>2020-07-24 00:40:20 +0200
commitc0bddf1331ada3bb817811ae4b92b2d95299fee2 (patch)
tree911f038a2d8ba4f5b033e9bd91950d93bb9e252a /example
parentf8f87bdc7d9991edb984579dd230cc244a3e97eb (diff)
downloadayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.tar.gz
ayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.tar.bz2
ayatana-ido-c0bddf1331ada3bb817811ae4b92b2d95299fee2.zip
Some refactoring to avoid warnings
Diffstat (limited to 'example')
-rw-r--r--example/menus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/menus.c b/example/menus.c
index 0ab6066..1355804 100644
--- a/example/menus.c
+++ b/example/menus.c
@@ -88,9 +88,9 @@ main (int argc, char *argv[])
65, 0, 100, 1);
ido_scale_menu_item_set_style (IDO_SCALE_MENU_ITEM (menuitem), IDO_SCALE_MENU_ITEM_STYLE_IMAGE);
image = ido_scale_menu_item_get_primary_image (IDO_SCALE_MENU_ITEM (menuitem));
- gtk_image_set_from_stock (GTK_IMAGE (image), GTK_STOCK_NEW, GTK_ICON_SIZE_MENU);
+ gtk_image_set_from_icon_name (GTK_IMAGE (image), "document-new", GTK_ICON_SIZE_MENU);
image = ido_scale_menu_item_get_secondary_image (IDO_SCALE_MENU_ITEM (menuitem));
- gtk_image_set_from_stock (GTK_IMAGE (image), GTK_STOCK_OPEN, GTK_ICON_SIZE_MENU);
+ gtk_image_set_from_icon_name (GTK_IMAGE (image), "document-open", GTK_ICON_SIZE_MENU);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
g_signal_connect (menuitem, "slider-grabbed", G_CALLBACK (slider_grabbed), NULL);
@@ -141,7 +141,7 @@ main (int argc, char *argv[])
NULL);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), w);
}
-
+
/* Add the menubar */