From: Christian Dywan Date: Fri, 16 Dec 2011 01:15:07 +0000 (+0100) Subject: Request dark style for private browsing windows X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=849351554e874eb6085e00d0376ca9d327af13a9;p=midori Request dark style for private browsing windows Fixes: https://bugs.launchpad.net/midori/+bug/905056 --- diff --git a/midori/main.c b/midori/main.c index 23477dcc..97cdde6e 100644 --- a/midori/main.c +++ b/midori/main.c @@ -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)