rename WEBKIT_SETTINGS var to not conflict with webkitgtk
This commit is contained in:
parent
32a23e9a17
commit
4d94d2d2e6
6
config.h
6
config.h
|
@ -2,8 +2,10 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
/* See more:
|
/* See more:
|
||||||
* https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html */
|
* https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html
|
||||||
#define WEBKIT \
|
*
|
||||||
|
*/
|
||||||
|
#define WEBKIT_DEFAULT_SETTINGS \
|
||||||
"enable-back-forward-navigation-gestures", true, "enable-developer-extras", true, \
|
"enable-back-forward-navigation-gestures", true, "enable-developer-extras", true, \
|
||||||
"enable-smooth-scrolling", false, \
|
"enable-smooth-scrolling", false, \
|
||||||
"default-charset", "utf-8"
|
"default-charset", "utf-8"
|
||||||
|
|
2
rose.c
2
rose.c
|
@ -55,7 +55,7 @@ WebKitWebView* webview_new()
|
||||||
WebKitCookieManager* cookiemanager;
|
WebKitCookieManager* cookiemanager;
|
||||||
WebKitUserContentManager* contentmanager;
|
WebKitUserContentManager* contentmanager;
|
||||||
|
|
||||||
settings = webkit_settings_new_with_settings(WEBKIT, NULL);
|
settings = webkit_settings_new_with_settings(WEBKIT_DEFAULT_SETTINGS, NULL);
|
||||||
if (CUSTOM_USER_AGENT) {
|
if (CUSTOM_USER_AGENT) {
|
||||||
webkit_settings_set_user_agent(
|
webkit_settings_set_user_agent(
|
||||||
settings,
|
settings,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user