aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-19 12:56:24 -0600
committerTed Gould <ted@gould.cx>2010-02-19 12:56:24 -0600
commit7243d998da4d037d4afc94d89cae05966a7ed364 (patch)
treef70bb424505ff243610556c24c6f5446c7722f16
parent981daa0d406ddf15038fc89da6f130cfa7093352 (diff)
downloadlibdbusmenu-7243d998da4d037d4afc94d89cae05966a7ed364.tar.gz
libdbusmenu-7243d998da4d037d4afc94d89cae05966a7ed364.tar.bz2
libdbusmenu-7243d998da4d037d4afc94d89cae05966a7ed364.zip
Setting signals back down the pipe
-rw-r--r--tests/test-glib-proxy-client.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/test-glib-proxy-client.c b/tests/test-glib-proxy-client.c
index 50ad5d3..36b553a 100644
--- a/tests/test-glib-proxy-client.c
+++ b/tests/test-glib-proxy-client.c
@@ -119,7 +119,15 @@ layout_updated (DbusmenuClient * client, gpointer data)
return;
}
layouton++;
- g_timeout_add (1500, layout_verify_timer, client);
+ if (layouton != 0) {
+ g_timeout_add (1500, layout_verify_timer, client);
+ } else {
+ DbusmenuMenuitem * mi = dbusmenu_client_get_root(client);
+ GValue value = {0};
+ g_value_init(&value, G_TYPE_INT);
+ g_value_set_int(&value, 0);
+ dbusmenu_menuitem_handle_event(mi, "clicked", &value, layouton);
+ }
return;
}
@@ -143,6 +151,11 @@ layout_verify_timer (gpointer data)
g_main_loop_quit(mainloop);
}
+ GValue value = {0};
+ g_value_init(&value, G_TYPE_INT);
+ g_value_set_int(&value, 0);
+ dbusmenu_menuitem_handle_event(menuroot, "clicked", &value, layouton);
+
return FALSE;
}