summaryrefslogtreecommitdiff
path: root/src/view.c
diff options
context:
space:
mode:
authorportix <none@none>2013-01-22 00:13:08 +0100
committerportix <none@none>2013-01-22 00:13:08 +0100
commit2926b76a4009d825f6e076115728c4a029a73df5 (patch)
tree81c35e8c138da3eeb63060418a00771137d523d7 /src/view.c
parent6a33d0940448e18653904a841e295983644ca9c5 (diff)
downloaddwb-2926b76a4009d825f6e076115728c4a029a73df5.zip
Parameter uri in createTab signal
Diffstat (limited to 'src/view.c')
-rw-r--r--src/view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view.c b/src/view.c
index 04110a86..e1485311 100644
--- a/src/view.c
+++ b/src/view.c
@@ -1414,8 +1414,10 @@ view_add(const char *uri, gboolean background)
}
if (EMIT_SCRIPT(CREATE_TAB))
{
- ScriptSignal signal = { VIEW(ret)->script_wv, SCRIPTS_SIG_META(NULL, CREATE_TAB, 0) };
+ char *json = util_create_json(1, CHAR, "uri", uri);
+ ScriptSignal signal = { VIEW(ret)->script_wv, SCRIPTS_SIG_META(json, CREATE_TAB, 0) };
scripts_emit(&signal);
+ g_free(json);
}