]> spindle.queued.net Git - midori/commitdiff
Retain the visibility of the navigationbar in fullscreen mode
authorChristian Dywan <christian@twotoasts.de>
Tue, 8 Dec 2009 22:55:25 +0000 (23:55 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 8 Dec 2009 22:57:58 +0000 (23:57 +0100)
It can be hidden manually, the way it used to be in 0.2.0

midori/midori-browser.c

index 92769fd8f258da4d02b3538a9c61a1ee72ccd1ab..11ca4aa8fa348aabf8a69d556f32b025d7a02049 100644 (file)
@@ -3604,9 +3604,7 @@ _action_location_focus_out (GtkAction*     action,
 {
     GtkWidget* view = midori_browser_get_current_tab (browser);
 
-    if (!browser->show_navigationbar
-        || gdk_window_get_state (GTK_WIDGET (browser)->window)
-                                 & GDK_WINDOW_STATE_FULLSCREEN)
+    if (!browser->show_navigationbar)
         gtk_widget_hide (browser->navigationbar);
 
     if (g_object_get_data (G_OBJECT (view), "news-feeds"))
@@ -5148,14 +5146,11 @@ midori_browser_window_state_event_cb (MidoriBrowser*       browser,
         if (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN)
         {
             gtk_widget_hide (browser->menubar);
-            gtk_widget_hide (browser->navigationbar);
         }
         else
         {
             if (katze_object_get_boolean (browser->settings, "show-menubar"))
                 gtk_widget_show (browser->menubar);
-            if (katze_object_get_boolean (browser->settings, "show-navigationbar"))
-                gtk_widget_show (browser->navigationbar);
         }
     }
 }