diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-11-12 21:01:12 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-11-12 21:01:12 +0100 |
commit | 7ba1b65f237e7c95e0aada55e79508d695390e01 (patch) | |
tree | d0aa540cc8a014be716174a37affcc851d5a1ae1 /uzbl-core.c | |
parent | d862f4dfb76151413545070ac2df706bca31d9cf (diff) | |
parent | f85c745e67eccda70d43ead308ababa37cfd036f (diff) |
Merge remote branch 'rob/experimental' into experimental
Diffstat (limited to 'uzbl-core.c')
-rw-r--r-- | uzbl-core.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 146642c..96a6208 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -88,7 +88,6 @@ const struct var_name_to_ptr_t { { "inject_html", PTR_V_STR(uzbl.behave.inject_html, 0, cmd_inject_html)}, { "geometry", PTR_V_STR(uzbl.gui.geometry, 1, cmd_set_geometry)}, { "keycmd", PTR_V_STR(uzbl.state.keycmd, 1, NULL)}, - { "status_message", PTR_V_STR(uzbl.gui.sbar.msg, 1, NULL)}, { "show_status", PTR_V_INT(uzbl.behave.show_status, 1, cmd_set_status)}, { "status_top", PTR_V_INT(uzbl.behave.status_top, 1, move_statusbar)}, { "status_format", PTR_V_STR(uzbl.behave.status_format, 1, NULL)}, @@ -1491,9 +1490,12 @@ parse_command(const char *cmd, const char *param, GString *result) { send_event(COMMAND_EXECUTED, tmp->str, NULL); g_string_free(tmp, TRUE); } - - } else - g_printerr ("command \"%s\" not understood. ignoring.\n", cmd); + } + else { + gchar *tmp = g_strdup_printf("%s %s", cmd, param?param:""); + send_event(COMMAND_ERROR, tmp, NULL); + g_free(tmp); + } } |