aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/menus.c8
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);