]> spindle.queued.net Git - midori/commitdiff
Enforce private/ app windows to be in normal state
authorChristian Dywan <christian@twotoasts.de>
Sat, 12 Mar 2011 20:27:58 +0000 (21:27 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 12 Mar 2011 20:27:58 +0000 (21:27 +0100)
midori/main.c

index a08a4c0b85ee21dfb2bdbfef5af2ed8a3dff5c5a..365bee6e6d40f60a3550f5dc734f8d094ca4256d 100644 (file)
@@ -1999,7 +1999,12 @@ main (int    argc,
                           NULL);
             midori_browser_set_action_visible (browser, "Menubar", FALSE);
         }
-        g_object_set (settings, "show-panel", FALSE, NULL);
+        g_object_set (settings, "show-panel", FALSE,
+                      "last-window-state", MIDORI_WINDOW_NORMAL,
+                      #if WEBKIT_CHECK_VERSION (1, 1, 2)
+                      "enable-private-browsing", TRUE,
+                      #endif
+                      NULL);
         midori_browser_set_action_visible (browser, "Tools", FALSE);
         midori_browser_set_action_visible (browser, "Panel", FALSE);
         g_object_set (browser, "settings", settings, NULL);