Request dark style for private browsing windows

Fixes: https://bugs.launchpad.net/midori/+bug/905056
This commit is contained in:
Christian Dywan 2011-12-16 02:15:07 +01:00
parent ecac5fdce2
commit 849351554e

View 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)