[yelp/wip/exalm/gesture] view: Enable WebKit back-forward swipe gesture



commit e5234739460319763f46ae82f4117663d382c46c
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.90. 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]