From: Daniel Carl <danielcarl@gmx.de>
Date: Tue, 23 May 2017 20:45:06 +0000 (+0200)
Subject: Use dashed naming for user-agent too.
X-Git-Url: https://git.owens.tech/112-editable-focus.html/112-editable-focus.html/git?a=commitdiff_plain;h=eb99771422a45c3a95b5335157dfe5a6eb70780c;p=vimb.git

Use dashed naming for user-agent too.
---

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");