diff options
author | Paolo Borelli <pborelli@katamail.com> | 2004-09-29 06:48:00 +0000 |
---|---|---|
committer | Paolo Borelli <pborelli@src.gnome.org> | 2004-09-29 06:48:00 +0000 |
commit | 26e50e26b323421725a1749424cf1098d3538bb5 (patch) | |
tree | 203d033e3afde85f188ff6fb63af14f45709d421 /tests/testtoolbar.c | |
parent | 40c0e94a4b0a02303edf9a8efbee64780e5c2422 (diff) | |
download | gtk+-26e50e26b323421725a1749424cf1098d3538bb5.tar.gz |
add a GtkMenuToolButton.
2004-09-29 Paolo Borelli <pborelli@katamail.com>
* tests/testtoolbar.c: add a GtkMenuToolButton.
Diffstat (limited to 'tests/testtoolbar.c')
-rw-r--r-- | tests/testtoolbar.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c index 3d19af6b42..c280e400f5 100644 --- a/tests/testtoolbar.c +++ b/tests/testtoolbar.c @@ -589,7 +589,16 @@ main (gint argc, gchar **argv) gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); gtk_tool_item_set_expand (item, TRUE); - item = gtk_tool_button_new_from_stock (GTK_STOCK_OPEN); + menu = gtk_menu_new (); + menuitem = gtk_menu_item_new_with_label ("foo.txt"); + gtk_widget_show (menuitem); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + menuitem = gtk_menu_item_new_with_label ("bar.txt"); + gtk_widget_show (menuitem); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + + item = gtk_menu_tool_button_new_from_stock (GTK_STOCK_OPEN); + gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (item), menu); add_item_to_list (store, item, "Open"); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); |