summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-17 18:32:48 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-17 18:32:48 +0000
commit6d34e1fcf79845eabb5aafb008e8bffa47acf4f7 (patch)
treee73f4b027daff5c26ae9e0ae4b11ac5f674c6b73 /src
parente22247a39463313f818f9e1b3e67feac35d658a1 (diff)
win32
Diffstat (limited to 'src')
-rw-r--r--src/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 13e98d2..a8cd79f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;