summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-01 01:05:11 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-01 01:05:11 +0000
commitfce84d0535303ac78fc30f664eb7ca2f92c2a278 (patch)
tree9f3fd06fc6dc5a866f0ce7fba6a577b200344212 /tests
parent8b26dc2cf15f61301974ba0ebd44dcd510ad75d3 (diff)
downloadgtk+-fce84d0535303ac78fc30f664eb7ca2f92c2a278.tar.gz
include gdkkeysysms.h if compiling gdk_keyval_convert_case.
Thu Feb 28 19:55:01 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkkeys.c: include gdkkeysysms.h if compiling gdk_keyval_convert_case. * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement <Control>Tab <Control><Shift>Tab to cycle between all menu bars in a toplevel once one is up. * tests/testgtk.c: Add a second menubar, this example is already full of crack anyways. * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd unhandled events up to the parent menu shell. * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only pop up the menu if the parent menu shell is still active. * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a old_focus argument, export privately.
Diffstat (limited to 'tests')
-rw-r--r--tests/testgtk.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 216548cf40..6516e2fe21 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -3109,6 +3109,17 @@ create_menus (void)
gtk_menu_bar_append (GTK_MENU_BAR (menubar), menuitem);
gtk_widget_show (menuitem);
+ menubar = gtk_menu_bar_new ();
+ gtk_box_pack_start (GTK_BOX (box1), menubar, FALSE, TRUE, 0);
+ gtk_widget_show (menubar);
+
+ menu = create_menu (2, 10, TRUE);
+
+ menuitem = gtk_menu_item_new_with_label ("Second menu bar");
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
+ gtk_menu_bar_append (GTK_MENU_BAR (menubar), menuitem);
+ gtk_widget_show (menuitem);
+
box2 = gtk_vbox_new (FALSE, 10);
gtk_container_set_border_width (GTK_CONTAINER (box2), 10);
gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);