]> spindle.queued.net Git - midori/commitdiff
Request dark style for private browsing windows
authorChristian Dywan <christian@twotoasts.de>
Fri, 16 Dec 2011 01:15:07 +0000 (02:15 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 16 Dec 2011 01:15:07 +0000 (02:15 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/905056
midori/main.c

index 23477dcc4cae74c365615fb096b09617d26f8e87..97cdde6e8c21e823c22d3ee7e30e8773988a2e31 100644 (file)
@@ -2177,6 +2177,11 @@ main (int    argc,
                           "strip-referer", TRUE, NULL);
             midori_browser_set_action_visible (browser, "Tools", FALSE);
             midori_browser_set_action_visible (browser, "ClearPrivateData", FALSE);
+            #if GTK_CHECK_VERSION (2, 22, 0)
+            g_object_set (gtk_widget_get_settings (GTK_WIDGET (browser)),
+                          "gtk-application-prefer-dark-theme", TRUE,
+                          NULL);
+            #endif
         }
 
         if (private || !config)