[Xfce4-commits] <midori:master> Preserve action visibility when adding menu items to the compact menu
Christian Dywan
noreply at xfce.org
Sun Nov 1 19:16:01 CET 2009
Updating branch refs/heads/master
to f320e0fc5f80082b4644f4bed56d0a6d30d043f6 (commit)
from f688bbabb035b3af18919f8bd484c385dd477380 (commit)
commit f320e0fc5f80082b4644f4bed56d0a6d30d043f6
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Oct 31 23:07:15 2009 +0100
Preserve action visibility when adding menu items to the compact menu
midori/midori-browser.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index b76627b..243fa49 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -2936,9 +2936,10 @@ _action_compact_menu_populate_popup (GtkAction* action,
{ "Homepage" },
{ "SourceView" },
#else
- { "ManageSearchEngines" },
{ "Print" },
+ { "About" },
{ "PrivateBrowsing" },
+ { "ManageSearchEngines" },
{ NULL },
{ "Bookmarkbar" },
{ "Panel" },
@@ -2999,9 +3000,11 @@ _action_compact_menu_populate_popup (GtkAction* action,
_action_by_name (browser, actions[i].name));
}
else
+ {
menuitem = gtk_separator_menu_item_new ();
+ gtk_widget_show (menuitem);
+ }
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
- gtk_widget_show (menuitem);
#endif
}
}
More information about the Xfce4-commits
mailing list