diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2008-02-11 09:54:09 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@src.gnome.org> | 2008-02-11 09:54:09 +0000 |
commit | 48c87e3e17c4ab6df5db22af23a5bd9ec0bf89c8 (patch) | |
tree | 6f4ea9ceccf53b3d8c1af1e2c482cbced7101a6a /tests | |
parent | 97e0d1120f3ac52fe5a271ffb75b2eb81632a3f6 (diff) | |
download | gtk+-48c87e3e17c4ab6df5db22af23a5bd9ec0bf89c8.tar.gz |
Set no-show-all flag on the placeholder menu item.
2008-02-11 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c:
(gtk_recent_chooser_menu_constructor): Set no-show-all flag
on the placeholder menu item.
* tests/testrecentchoosermenu.c:
(create_recent_chooser_menu): Use gtk_widget_show_all() to test
whether the placeholder menu item gets shown.
svn path=/trunk/; revision=19509
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testrecentchoosermenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testrecentchoosermenu.c b/tests/testrecentchoosermenu.c index d22ef012e3..751af9f39e 100644 --- a/tests/testrecentchoosermenu.c +++ b/tests/testrecentchoosermenu.c @@ -81,8 +81,6 @@ create_recent_chooser_menu (gint limit) G_CALLBACK (item_activated_cb), NULL); - gtk_widget_show (menu); - menuitem = gtk_separator_menu_item_new (); gtk_menu_shell_prepend (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); @@ -103,6 +101,8 @@ create_recent_chooser_menu (gint limit) gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); + gtk_widget_show_all (menu); + return menu; } |