[devhelp/wip/exalm/gesture] WebView: Enable WebKit back-forward swipe gesture



commit 652f2bef2b7dd8f6a84fcf20c8ebef6255d42335
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sat Feb 9 15:36:48 2019 +0500

    WebView: Enable WebKit back-forward swipe gesture
    
    WebKitGTK supports back-forward navigation gesture since 2.23.4. Make use
    of it.

 devhelp/dh-web-view.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/devhelp/dh-web-view.c b/devhelp/dh-web-view.c
index cfc907cb..db58fa2e 100644
--- a/devhelp/dh-web-view.c
+++ b/devhelp/dh-web-view.c
@@ -494,6 +494,11 @@ dh_web_view_constructed (GObject *object)
         webkit_settings_set_enable_html5_local_storage (webkit_settings, FALSE);
         webkit_settings_set_enable_plugins (webkit_settings, FALSE);
 
+#if WEBKIT_CHECK_VERSION(2, 23, 4)
+        /* Enable navigation gesture */
+        webkit_settings_set_enable_back_forward_navigation_gestures (webkit_settings, TRUE);
+#endif
+
         if (view->priv->profile == NULL)
                 set_profile (view, dh_profile_get_default ());
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]