[yelp/wip/exalm/gesture] view: Enable WebKit back-forward swipe gesture
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/wip/exalm/gesture] view: Enable WebKit back-forward swipe gesture
- Date: Sat, 9 Feb 2019 10:19:18 +0000 (UTC)
commit 883345b847e65d297485314d99c8e8c7d7f16de6
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sat Feb 9 15:13:14 2019 +0500
view: Enable WebKit back-forward swipe gesture
WebKitGTK supports back-forward navigation gesture since 2.23.4. Make use
of it in Yelp.
libyelp/yelp-view.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/libyelp/yelp-view.c b/libyelp/yelp-view.c
index 183506e4..f95fa1a1 100644
--- a/libyelp/yelp-view.c
+++ b/libyelp/yelp-view.c
@@ -150,7 +150,11 @@ yelp_view_get_global_settings (void)
static WebKitSettings *websettings = NULL;
if (!websettings)
- websettings = webkit_settings_new_with_settings ("default-charset", "utf-8", NULL);
+ websettings = webkit_settings_new_with_settings ("default-charset", "utf-8",
+#if WEBKIT_CHECK_VERSION(2, 23, 4)
+ "enable-back-forward-navigation-gestures", TRUE,
+#endif
+ NULL);
return websettings;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]