Commit 26e50e26 authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli
Browse files

add a GtkMenuToolButton.

2004-09-29  Paolo Borelli  <pborelli@katamail.com>

	* tests/testtoolbar.c: add a GtkMenuToolButton.
parent 40c0e94a
2004-09-29 Paolo Borelli <pborelli@katamail.com>
* tests/testtoolbar.c: add a GtkMenuToolButton.
2004-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
......
2004-09-29 Paolo Borelli <pborelli@katamail.com>
* tests/testtoolbar.c: add a GtkMenuToolButton.
2004-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
......
2004-09-29 Paolo Borelli <pborelli@katamail.com>
* tests/testtoolbar.c: add a GtkMenuToolButton.
2004-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
......
2004-09-29 Paolo Borelli <pborelli@katamail.com>
* tests/testtoolbar.c: add a GtkMenuToolButton.
2004-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment