[Xfce4-commits] <midori:master> Always enable HTML5 databases with WebKitGTK+ >= 1.1.14

Christian Dywan noreply at xfce.org
Thu Oct 14 01:48:04 CEST 2010


Updating branch refs/heads/master
         to b5430eeead8038412e9a75243238ec401dd2a194 (commit)
       from 89c0975e665b667c187444879b6d39c7a147ae9c (commit)

commit b5430eeead8038412e9a75243238ec401dd2a194
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Oct 14 01:42:36 2010 +0200

    Always enable HTML5 databases with WebKitGTK+ >= 1.1.14
    
    The infobar will be shown when databases are saved, and it will
    be added to the private data dialogue.

 midori/main.c               |    3 +++
 midori/midori-preferences.c |    8 +++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index 2a0499a..64a7583 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -1882,6 +1882,9 @@ main (int    argc,
     error = NULL;
     settings = settings_new_from_file (config_file, &extensions);
     g_object_set (settings, "enable-developer-extras", TRUE, NULL);
+    #if WEBKIT_CHECK_VERSION (1, 1, 14)
+    g_object_set (settings, "enable-html5-database", TRUE, NULL);
+    #endif
     midori_startup_timer ("Config read: \t%f");
 
     /* Load accelerators */
diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c
index 5f591ac..86214ae 100644
--- a/midori/midori-preferences.c
+++ b/midori/midori-preferences.c
@@ -572,12 +572,14 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
         g_free (markup);
     }
     FILLED_ADD (label);
+    #if WEBKIT_CHECK_VERSION (1, 1, 13)
+    INDENTED_ADD (katze_property_proxy (settings, "enable-offline-web-application-cache", NULL));
+    #endif
     #if WEBKIT_CHECK_VERSION (1, 1, 8)
-    INDENTED_ADD (katze_property_proxy (settings, "enable-html5-database", NULL));
     SPANNED_ADD (katze_property_proxy (settings, "enable-html5-local-storage", NULL));
+    #if !WEBKIT_CHECK_VERSION (1, 1, 14)
+    INDENTED_ADD (katze_property_proxy (settings, "enable-html5-database", NULL));
     #endif
-    #if WEBKIT_CHECK_VERSION (1, 1, 13)
-    INDENTED_ADD (katze_property_proxy (settings, "enable-offline-web-application-cache", NULL));
     #endif
     FRAME_NEW (_("History"));
     button = katze_property_label (settings, "maximum-history-age");



More information about the Xfce4-commits mailing list