From 75e07e0b666fef7947c9b81caf13743577ac725b Mon Sep 17 00:00:00 2001 From: Rob Date: Tue, 3 Nov 2009 16:29:37 +0100 Subject: added FILE_INCLUDED event --- uzbl-core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'uzbl-core.c') diff --git a/uzbl-core.c b/uzbl-core.c index 1383cc9..5e91eb9 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -889,10 +889,7 @@ include(WebKitWebView *page, GArray *argv, GString *result) { pe = parseenv(argv_idx(argv, 0)); if((path = find_existing_file(pe))) { - g_free(pe); - GArray* lines = read_file_by_line(path); - g_free(path); while ((line = g_array_index(lines, gchar*, i))) { parse_cmd_line (line, NULL); @@ -900,7 +897,11 @@ include(WebKitWebView *page, GArray *argv, GString *result) { g_free (line); } g_array_free (lines, TRUE); + + send_event(FILE_INCLUDED, path, NULL); + g_free(path); } + g_free(pe); } void -- cgit v1.2.3