aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-08-22 09:39:22 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-08-22 09:39:22 -0500
commitfc8fad250f546c4923d4839a77e897cf6b75dc04 (patch)
treedbd84b9aad1cdad597ce991d6a4376a4889ec9d7 /example
parent84a63033c820bf890e0bcecd2f07cc325c44e9e9 (diff)
parent8f279d3f26f588bb022f3f0d05edff6858035eab (diff)
downloadayatana-ido-fc8fad250f546c4923d4839a77e897cf6b75dc04.tar.gz
ayatana-ido-fc8fad250f546c4923d4839a77e897cf6b75dc04.tar.bz2
ayatana-ido-fc8fad250f546c4923d4839a77e897cf6b75dc04.zip
sync with lp:ido
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 207c0e4..5687b8e 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");
@@ -72,6 +74,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);