aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-07-15 08:44:29 -0500
committerCody Russell <crussell@canonical.com>2010-07-15 08:44:29 -0500
commitb3dc66c6c44918f56a02b40a6f55d71eaeb5e0c1 (patch)
tree3289e6e8bb8a28f3878906de50dc88e01138111a /example
parentdfa545557b295cd2f3740c926a9f1574de1716de (diff)
downloadayatana-ido-b3dc66c6c44918f56a02b40a6f55d71eaeb5e0c1.tar.gz
ayatana-ido-b3dc66c6c44918f56a02b40a6f55d71eaeb5e0c1.tar.bz2
ayatana-ido-b3dc66c6c44918f56a02b40a6f55d71eaeb5e0c1.zip
Different range size styles.
Diffstat (limited to 'example')
-rw-r--r--example/menus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/menus.c b/example/menus.c
index e6765b3..e244c40 100644
--- a/example/menus.c
+++ b/example/menus.c
@@ -51,7 +51,9 @@ main (int argc, char *argv[])
menuitem = gtk_menu_item_new_with_label ("Open");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
- menuitem = ido_scale_menu_item_new_with_range ("Volume", 65, 0, 100, 1);
+ menuitem = ido_scale_menu_item_new_with_range ("Volume",
+ IDO_RANGE_STYLE_DEFAULT,
+ 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);