aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-22 12:09:37 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-10-22 12:09:37 -0400
commitd910f4155f15fde7635591141ef71d16654c0378 (patch)
tree672c114195078c0eb88333d1f669781a0b0676ce /example
parent898a2216d7e206197476741196f8490b137c0260 (diff)
downloadayatana-ido-d910f4155f15fde7635591141ef71d16654c0378.tar.gz
ayatana-ido-d910f4155f15fde7635591141ef71d16654c0378.tar.bz2
ayatana-ido-d910f4155f15fde7635591141ef71d16654c0378.zip
examples: use new IdoSwitchMenuItem API
Diffstat (limited to 'example')
-rw-r--r--example/menus.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/example/menus.c b/example/menus.c
index ab070ac..0ab6066 100644
--- a/example/menus.c
+++ b/example/menus.c
@@ -31,7 +31,6 @@ main (int argc, char *argv[])
GtkWidget *root;
GtkWidget *menubar;
GtkWidget *image;
- GtkWidget *label;
const struct {
const char * username;
@@ -103,9 +102,7 @@ main (int argc, char *argv[])
/* Switch */
menuitem = ido_switch_menu_item_new ();
- label = gtk_label_new ("This is a switch");
- gtk_widget_show(label);
- gtk_container_add (ido_switch_menu_item_get_content_area(IDO_SWITCH_MENU_ITEM(menuitem)), label);
+ ido_switch_menu_item_set_label (IDO_SWITCH_MENU_ITEM (menuitem), "This is a switch.");
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
/* Calendar */