diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-10-22 20:13:38 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-10-22 20:13:38 +0000 |
commit | 596e38b65bf82aaea478b27fe2a9adf3021ef26c (patch) | |
tree | 0d703d8f02328410970d45e5bb8a2901f6dda85d /example | |
parent | 6e849d59f8ca112a42e4fda71d14ece905038e41 (diff) | |
parent | bccb3fbe7afc9842c0296d662d083285fdbe9706 (diff) | |
download | ayatana-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.c | 5 |
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 */ |