[Xfce4-commits] <postler:master> Enable private browsing mode in WebKit.WebSettings

Christian Dywan noreply at xfce.org
Sat Jun 12 23:08:02 CEST 2010


Updating branch refs/heads/master
         to 82ac027ebe8847a1ae666cb2ecc426165926e49e (commit)
       from 65ee48b0b37c33dac52fc070c12174ff5a2caeef (commit)

commit 82ac027ebe8847a1ae666cb2ecc426165926e49e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Jun 11 23:55:56 2010 +0200

    Enable private browsing mode in WebKit.WebSettings

 postler/postler-content.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 0517283..59b77c0 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -88,6 +88,9 @@ public class Postler.Content : WebKit.WebView {
                         Pango.Language.get_default ().to_string ());
             settings.set ("user-agent", user_agent, null);
         }
+        if (settings.get_class ().find_property ("enable-private-browsing") != null) {
+            settings.set ("enable-private-browsing", true, null);
+        }
         navigation_policy_decision_requested.connect (navigation_decision);
         populate_popup.connect (populate_menu);
     }



More information about the Xfce4-commits mailing list