[devhelp/wip/exalm/gesture: 10/10] WebView: Enable WebKit back-forward swipe gesture
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/exalm/gesture: 10/10] WebView: Enable WebKit back-forward swipe gesture
- Date: Fri, 28 Jun 2019 16:50:55 +0000 (UTC)
commit ff34fd14d481ba0bdb87582aaa021198ef657839
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.90. 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]