diff options
author | portix <none@none> | 2013-01-22 00:13:08 +0100 |
---|---|---|
committer | portix <none@none> | 2013-01-22 00:13:08 +0100 |
commit | 2926b76a4009d825f6e076115728c4a029a73df5 (patch) | |
tree | 81c35e8c138da3eeb63060418a00771137d523d7 /src/view.c | |
parent | 6a33d0940448e18653904a841e295983644ca9c5 (diff) | |
download | dwb-2926b76a4009d825f6e076115728c4a029a73df5.zip |
Parameter uri in createTab signal
Diffstat (limited to 'src/view.c')
-rw-r--r-- | src/view.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |