diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-08-21 12:22:51 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-08-21 12:22:51 -0500 |
commit | 992e74684a09cf608442caf7503e0adf8eb2831d (patch) | |
tree | 4da989e2a1d65a62f72f104034cd6b9c66cbfd5a /example | |
parent | 2a3f56b5168e9745547d2289c0710ae606920cde (diff) | |
download | ayatana-ido-992e74684a09cf608442caf7503e0adf8eb2831d.tar.gz ayatana-ido-992e74684a09cf608442caf7503e0adf8eb2831d.tar.bz2 ayatana-ido-992e74684a09cf608442caf7503e0adf8eb2831d.zip |
add IdoSwitchMenuItem
Diffstat (limited to 'example')
-rw-r--r-- | example/menus.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/example/menus.c b/example/menus.c index b563eaf..12a2284 100644 --- a/example/menus.c +++ b/example/menus.c @@ -3,6 +3,7 @@ #include "idoscalemenuitem.h" #include "idocalendarmenuitem.h" #include "idoentrymenuitem.h" +#include "idoswitchmenuitem.h" #include "config.h" static void @@ -27,6 +28,7 @@ main (int argc, char *argv[]) GtkWidget *root; GtkWidget *menubar; GtkWidget *image; + GtkWidget *label; g_unsetenv ("UBUNTU_MENUPROXY"); @@ -76,6 +78,12 @@ main (int argc, char *argv[]) menuitem = ido_entry_menu_item_new (); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + 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); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + menuitem = ido_calendar_menu_item_new (); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); |