Use dashed naming for user-agent too.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 23 May 2017 20:45:06 +0000 (22:45 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 23 May 2017 20:45:06 +0000 (22:45 +0200)
doc/vimb.1
src/setting.c

index 3259421..0fc8206 100644 (file)
@@ -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)
index e3cabdd..62f7c85 100644 (file)
@@ -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");