diff options
author | portix <none@none> | 2012-10-28 13:03:34 +0100 |
---|---|---|
committer | portix <none@none> | 2012-10-28 13:03:34 +0100 |
commit | 18e4beeb495018e4660c8f37b594659f40c01fdd (patch) | |
tree | f336faf700ad981684a60114f844321760776b0e /src | |
parent | 4ce6504c16f05c25817089069c9c5f5204cdd1c8 (diff) | |
download | dwb-18e4beeb495018e4660c8f37b594659f40c01fdd.zip |
Fixing wrong parameter type in submit_searchengine
Diffstat (limited to 'src')
-rw-r--r-- | src/dwb.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1705,7 +1705,7 @@ dwb_submit_searchengine(void) { hint_search_submit = HINT_SEARCH_SUBMIT; } snprintf(buffer, sizeof(buffer), "{ \"searchString\" : \"%s\" }", hint_search_submit); - if ( (value = js_call_as_function(MAIN_FRAME(), CURRENT_VIEW()->js_base, "submitSearchEngine", buffer, kJSTypeUndefined, &value)) ) { + if ( (value = js_call_as_function(MAIN_FRAME(), CURRENT_VIEW()->js_base, "submitSearchEngine", buffer, kJSTypeString, &value)) ) { dwb.state.form_name = value; } }/*}}}*/ @@ -1854,7 +1854,7 @@ dwb_update_hints(GdkEventKey *e) { g_free(val); } if (com) { - buffer = js_call_as_function(MAIN_FRAME(), CURRENT_VIEW()->js_base, com, *json ? json : NULL, kJSTypeObject, &buffer); + buffer = js_call_as_function(MAIN_FRAME(), CURRENT_VIEW()->js_base, com, *json ? json : NULL, *json ? kJSTypeObject : kJSTypeUndefined, &buffer); } if (buffer != NULL) { if (dwb_evaluate_hints(buffer) == STATUS_END) |