Summary Files Commits Branches @commit @diff @stats
path: root / config.h
diff options
context:
space:
mode:
Commitece738d6264e928bc15a9c5d10529f3aa1330be3 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-28 22:40:49 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2019-03-28 22:41:16 +0100
Filesbbc9cdc3e44af7b4eb238e0614ec73633d470d61 /config.h
goodwolf-ece738d6264e928bc15a9c5d10529f3aa1330be3.tar
goodwolf-ece738d6264e928bc15a9c5d10529f3aa1330be3.tar.gz
goodwolf-ece738d6264e928bc15a9c5d10529f3aa1330be3.zip
Parentf5d3ddcdaf87b422a02b4bfffe4ba1b299e61e73 (diff)
Move WebkitSettings to config.h
1 files changed, 21 insertions, 2 deletions
-rw-r--r--config.h23
diff --git a/config.h b/config.h
index 3bb3596..968a5c8 100644
--- a/config.h
+++ b/config.h
@@ -27,8 +27,7 @@
// BADWOLF_TOOLBAR_PADDING: Amount of padding between toolbar elements
#define BADWOLF_TOOLBAR_PADDING 0
-/*
- * BADWOLF_DEFAULT_WIDTH / BADWOLF_DEFAULT_HEIGHT:
+/* BADWOLF_DEFAULT_WIDTH / BADWOLF_DEFAULT_HEIGHT:
* Used to define the default width/height of the window,
* useful for floating Window Managers, probably useless in tiling ones
*
@@ -36,3 +35,23 @@
*/
#define BADWOLF_DEFAULT_WIDTH 800
#define BADWOLF_DEFAULT_HEIGHT 600
+
+/* BADWOLF_WEBKIT_SETTINGS:
+ * Used when creating a new view with webkit_settings_new_with_settings the usage is:
+ * setting-name, setting-value, setting-name, …, NULL
+ *
+ * See: https://webkitgtk.org/reference/webkit2gtk/stable/WebKitSettings.html
+ */
+#define BADWOLF_WEBKIT_SETTINGS \
+ "default-charset", "utf-8", \
+ "enable-caret-browsing", TRUE, \
+ "enable-developer-extras", TRUE, \
+ "enable-java", FALSE, \
+ "enable-javascript", FALSE, \
+ "enable-plugins", FALSE, \
+ "javascript-can-access-clipboard", FALSE, \
+ "javascript-can-open-windows-automatically", FALSE, \
+ "media-playback-requires-user-gesture", TRUE, \
+ "minimum-font-size", 9, \
+ NULL
+// TODO: Look if there is a way to make clang-format ignore this define