summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-10-28 13:03:34 +0100
committerportix <none@none>2012-10-28 13:03:34 +0100
commit18e4beeb495018e4660c8f37b594659f40c01fdd (patch)
treef336faf700ad981684a60114f844321760776b0e /src
parent4ce6504c16f05c25817089069c9c5f5204cdd1c8 (diff)
downloaddwb-18e4beeb495018e4660c8f37b594659f40c01fdd.zip
Fixing wrong parameter type in submit_searchengine
Diffstat (limited to 'src')
-rw-r--r--src/dwb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dwb.c b/src/dwb.c
index 2eb3e735..dab59d61 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -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)