diff options
author | Alexander Larsson <alexl@redhat.com> | 2001-02-21 09:29:01 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2001-02-21 09:29:01 +0000 |
commit | e1e093fa4449b77323c835ec30b97cf535d6c766 (patch) | |
tree | c12f3f8ca7f5adc3d3a08a00d065f23d2d4b01ab /demos | |
parent | 7884954089bfdf0f4c06df4bd7868962792cd2d5 (diff) | |
download | gtk+-e1e093fa4449b77323c835ec30b97cf535d6c766.tar.gz |
Added new menu separator item. The drawing and size handling is still done
2001-02-21 Alexander Larsson <alexl@redhat.com>
* gtk/gtkseparatormenuitem.[ch]:
Added new menu separator item. The drawing and size handling
is still done in GtkMenuItem, but the API is a bit more sane.
* gtk/Makefile.am:
Add gtkseparatormenuitem.[ch].
* gtk/gtk.h:
Add gtkseparatormenuitem.h.
* gtk/gtkentry.c:
* gtk/gtkmenufactory.c:
* gtk/gtktextview.c:
Use the new API for menu separators.
* demos/gtk-demo/menus.c (create_menu):
Add some GtkSeparatorMenuItem demo code.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/menus.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/demos/gtk-demo/menus.c b/demos/gtk-demo/menus.c index 95ddb10e1a..ac8a7e2c53 100644 --- a/demos/gtk-demo/menus.c +++ b/demos/gtk-demo/menus.c @@ -118,7 +118,11 @@ do_menus (void) menu = create_menu (1, FALSE); gtk_menu_set_accel_group (GTK_MENU (menu), accel_group); - + + menuitem = gtk_separator_menu_item_new (); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + gtk_widget_show (menuitem); + menuitem = gtk_check_menu_item_new_with_label ("Accelerate Me"); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); |