aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-10-06 15:55:37 +0100
committerNunoSempere <nuno.sempere@protonmail.com>2023-10-06 15:55:37 +0100
commit4d94d2d2e6aa43cb478748aa093c9054de67914a (patch)
tree6e9b87c61cfd2ff88d685fa0d53cfb047281e39e
parent32a23e9a171d025f26d0c72a15fda8cbffecc314 (diff)
rename WEBKIT_SETTINGS var to not conflict with webkitgtk
-rw-r--r--config.h6
-rw-r--r--rose.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/config.h b/config.h
index 153822f..5835581 100644
--- a/config.h
+++ b/config.h
@@ -2,8 +2,10 @@
#include <stdbool.h>
/* See more:
- * https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html */
-#define WEBKIT \
+ * https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html
+ *
+*/
+#define WEBKIT_DEFAULT_SETTINGS \
"enable-back-forward-navigation-gestures", true, "enable-developer-extras", true, \
"enable-smooth-scrolling", false, \
"default-charset", "utf-8"
diff --git a/rose.c b/rose.c
index 142544c..bead302 100644
--- a/rose.c
+++ b/rose.c
@@ -55,7 +55,7 @@ WebKitWebView* webview_new()
WebKitCookieManager* cookiemanager;
WebKitUserContentManager* contentmanager;
- settings = webkit_settings_new_with_settings(WEBKIT, NULL);
+ settings = webkit_settings_new_with_settings(WEBKIT_DEFAULT_SETTINGS, NULL);
if (CUSTOM_USER_AGENT) {
webkit_settings_set_user_agent(
settings,