aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl-core.c
diff options
context:
space:
mode:
authorGravatar Rob <rob.manea@gmail.com>2009-11-03 16:29:37 +0100
committerGravatar Rob <rob.manea@gmail.com>2009-11-03 16:29:37 +0100
commit75e07e0b666fef7947c9b81caf13743577ac725b (patch)
tree5712d669b280b9b4dd51f28e4533594973a78aa0 /uzbl-core.c
parent849aacc54869eb047c710467802ef8aaa5fbc522 (diff)
added FILE_INCLUDED event
Diffstat (limited to 'uzbl-core.c')
-rw-r--r--uzbl-core.c7
1 files changed, 4 insertions, 3 deletions
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