aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-22 20:13:38 +0000
committerTarmac <Unknown>2013-10-22 20:13:38 +0000
commit596e38b65bf82aaea478b27fe2a9adf3021ef26c (patch)
tree0d703d8f02328410970d45e5bb8a2901f6dda85d /example
parent6e849d59f8ca112a42e4fda71d14ece905038e41 (diff)
parentbccb3fbe7afc9842c0296d662d083285fdbe9706 (diff)
downloadayatana-ido-596e38b65bf82aaea478b27fe2a9adf3021ef26c.tar.gz
ayatana-ido-596e38b65bf82aaea478b27fe2a9adf3021ef26c.tar.bz2
ayatana-ido-596e38b65bf82aaea478b27fe2a9adf3021ef26c.zip
Make IdoSwitchMenuItem accessible from gtk_menu_new_from_model.
Approved by Charles Kerr, PS Jenkins bot.
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 */