diff options
author | 2009-05-26 16:11:08 +0200 | |
---|---|---|
committer | 2009-05-28 11:51:30 +0200 | |
commit | c1e8c50b6a23a462fe650105b8460100d847dbb9 (patch) | |
tree | a4c877b2e7ae14c710138d5de8551c2038f87fa4 | |
parent | e0dadf73c0d42fd2a82e44d10b9d42f41d841114 (diff) |
Print a warning when a key binding is overwritten
Signed-off-by: Uli Schlachter <psychon@znc.in>
-rw-r--r-- | uzbl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2019,6 +2019,8 @@ add_binding (const gchar *key, const gchar *act) { printf ("Binding %-10s : %s\n", key, act); action = new_action(parts[0], parts[1]); + if (g_hash_table_remove (uzbl.bindings, key)) + g_warning ("Overwriting existing binding for \"%s\"", key); g_hash_table_replace(uzbl.bindings, g_strdup(key), action); g_strfreev(parts); } |