diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-10-17 18:32:48 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-10-17 18:32:48 +0000 |
commit | 6d34e1fcf79845eabb5aafb008e8bffa47acf4f7 (patch) | |
tree | e73f4b027daff5c26ae9e0ae4b11ac5f674c6b73 /src | |
parent | e22247a39463313f818f9e1b3e67feac35d658a1 (diff) |
win32
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -98,14 +98,14 @@ struct trg_mailslot_recv_args { static gboolean mailslot_recv_args(gpointer data) { struct trg_mailslot_recv_args *args = (struct trg_mailslot_recv_args*) data; - if (args->uris) - trg_add_from_filename(args->win, args->uris); - if (args->present) { gtk_window_deiconify(GTK_WINDOW(args->win)); gtk_window_present(GTK_WINDOW(args->win)); } + if (args->uris) + trg_add_from_filename(args->win, args->uris); + g_free(args); return FALSE; @@ -154,8 +154,9 @@ static gpointer mailslot_recv_thread(gpointer data) { args->win = win; if (json_object_has_member(obj, "args")) { - JsonArray *array = json_node_get_array(node); + JsonArray *array = json_object_get_array_member(obj, "args"); GList *arrayList = json_array_get_elements(array); + if (arrayList) { guint arrayLength = g_list_length(arrayList); int i = 0; |