_midori_browser_save_toolbar_items (browser);
}
}
+
+ g_object_set_data (G_OBJECT (browser), "midori-toolbars-visible",
+ GTK_WIDGET_VISIBLE (browser->menubar)
+ || GTK_WIDGET_VISIBLE (browser->navigationbar)
+ ? (void*)0xdeadbeef : NULL);
#endif
}
if (browser->settings)
g_object_set (browser->settings, "show-navigationbar", active, NULL);
sokoke_widget_set_visible (browser->navigationbar, active);
+
+ g_object_set_data (G_OBJECT (browser), "midori-toolbars-visible",
+ GTK_WIDGET_VISIBLE (browser->menubar)
+ || GTK_WIDGET_VISIBLE (browser->navigationbar)
+ ? (void*)0xdeadbeef : NULL);
}
static void
G_CALLBACK (midori_web_view_menu_inspect_page_activate_cb), widget); */
#endif
+ if (!g_object_get_data (G_OBJECT (browser), "midori-toolbars-visible"))
+ {
+ menuitem = sokoke_action_create_popup_menu_item (
+ gtk_action_group_get_action (actions, "Menubar"));
+ gtk_menu_shell_append (menu_shell, menuitem);
+ }
+
menuitem = sokoke_action_create_popup_menu_item (
gtk_action_group_get_action (actions, "ZoomIn"));
gtk_menu_shell_append (menu_shell, menuitem);