From eb99771422a45c3a95b5335157dfe5a6eb70780c Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Tue, 23 May 2017 22:45:06 +0200 Subject: [PATCH] Use dashed naming for user-agent too. --- doc/vimb.1 | 2 +- src/setting.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/vimb.1 b/doc/vimb.1 index 3259421..0fc8206 100644 --- a/doc/vimb.1 +++ b/doc/vimb.1 @@ -1079,7 +1079,7 @@ of a Tab character. The time in milliseconds that is waited for a key code or mapped key sequence to complete. .TP -.B useragent (string) +.B user-agent (string) The user-agent string used by WebKit. .TP .B user-scripts (bool) diff --git a/src/setting.c b/src/setting.c index e3cabdd..62f7c85 100644 --- a/src/setting.c +++ b/src/setting.c @@ -78,7 +78,7 @@ void setting_init(Client *c) * Separate the setting definition from the data. * Don't set the webkit settings if they are the default on startup. */ c->config.settings = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, (GDestroyNotify)setting_free); - setting_add(c, "useragent", TYPE_CHAR, &"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/604.1 (KHTML, like Gecko) Version/11.0 Safari/604.1 " PROJECT "/" VERSION, webkit, 0, "user-agent"); + setting_add(c, "user-agent", TYPE_CHAR, &"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/604.1 (KHTML, like Gecko) Version/11.0 Safari/604.1 " PROJECT "/" VERSION, webkit, 0, "user-agent"); /* TODO use the real names for webkit settings */ i = 14; setting_add(c, "accelerated-2d-canvas", TYPE_BOOLEAN, &off, webkit, 0, "enable-accelerated-2d-canvas"); -- 2.20.1