]> spindle.queued.net Git - midori/commitdiff
Respect menubar visibility when restoring from fullscreen
authorChristian Dywan <christian@twotoasts.de>
Sat, 6 Dec 2008 03:53:30 +0000 (04:53 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 6 Dec 2008 03:53:30 +0000 (04:53 +0100)
midori/midori-browser.c

index a94f898317845432e72f2d4a2156a47e05f885ed..c925b2a3fc6afdd9f29d8c8b2708dab0967810e1 100644 (file)
@@ -3269,7 +3269,8 @@ midori_browser_window_state_event_cb (MidoriBrowser*       browser,
         }
         else
         {
-            gtk_widget_show (browser->menubar);
+            if (katze_object_get_boolean (browser->settings, "show-menubar"))
+                gtk_widget_show (browser->menubar);
             gtk_widget_hide (browser->button_fullscreen);
             g_object_set (browser->button_fullscreen,
                           "stock-id", GTK_STOCK_FULLSCREEN, NULL);