[Xfce4-commits] <midori:master> Use compact menu as the main menu when building for Maemo
Christian Dywan
noreply at xfce.org
Mon Oct 12 13:06:02 CEST 2009
Updating branch refs/heads/master
to 641553d312cb054c1f686d3513e7283107720691 (commit)
from c3217c6365b5c8d098436584531328a86165ae80 (commit)
commit 641553d312cb054c1f686d3513e7283107720691
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Oct 12 13:02:39 2009 +0200
Use compact menu as the main menu when building for Maemo
midori/midori-browser.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index d334d0a..164cc50 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -2813,11 +2813,13 @@ _action_compact_menu_populate_popup (GtkAction* action,
{ "Print" },
{ "PrivateBrowsing" },
{ NULL },
+ #if !HAVE_HILDON
{ "Bookmarkbar" },
{ "Panel" },
{ "Statusbar" },
{ NULL },
{ "-" },
+ #endif
{ "ClearPrivateData" },
{ "Fullscreen" },
{ "Preferences" },
@@ -5302,15 +5304,8 @@ midori_browser_init (MidoriBrowser* browser)
/* Create the menubar */
browser->menubar = gtk_ui_manager_get_widget (ui_manager, "/menubar");
#if HAVE_HILDON
- menu = gtk_menu_new ();
- children = gtk_container_get_children (GTK_CONTAINER (browser->menubar));
- while (children)
- {
- menuitem = GTK_WIDGET (children->data);
- gtk_widget_reparent (menuitem, menu);
- children = g_list_next (children);
- }
- browser->menubar = menu;
+ browser->menubar = gtk_menu_new ();
+ _action_compact_menu_populate_popup (NULL, browser->menubar, browser);
hildon_window_set_menu (HILDON_WINDOW (browser), GTK_MENU (browser->menubar));
hildon_program_add_window (hildon_program_get_instance (),
HILDON_WINDOW (browser));
More information about the Xfce4-commits
mailing list