[Xfce4-commits] <midori:master> Request dark style for private browsing windows

Christian Dywan noreply at xfce.org
Fri Dec 16 02:16:02 CET 2011


Updating branch refs/heads/master
         to 849351554e874eb6085e00d0376ca9d327af13a9 (commit)
       from ecac5fdce2c08cf521616f4eda3a5099b002e55e (commit)

commit 849351554e874eb6085e00d0376ca9d327af13a9
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Dec 16 02:15:07 2011 +0100

    Request dark style for private browsing windows
    
    Fixes: https://bugs.launchpad.net/midori/+bug/905056

 midori/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index 23477dc..97cdde6 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)


More information about the Xfce4-commits mailing list