diff options
author | Ted Gould <ted@canonical.com> | 2009-10-22 11:30:41 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-22 11:30:41 -0500 |
commit | e0d35fcfc64134af45aa4da81e6a8e9cd2007d16 (patch) | |
tree | f8433326b6eea7415ba22cb58382e5e1c7aa56ea /tests/test-libcustomindicator-dbus-client.c | |
parent | a8b100939f7473874d858683229c2021b8ce6be6 (diff) | |
download | ayatana-indicator-application-e0d35fcfc64134af45aa4da81e6a8e9cd2007d16.tar.gz ayatana-indicator-application-e0d35fcfc64134af45aa4da81e6a8e9cd2007d16.tar.bz2 ayatana-indicator-application-e0d35fcfc64134af45aa4da81e6a8e9cd2007d16.zip |
Adding a kill function, just in case.
Diffstat (limited to 'tests/test-libcustomindicator-dbus-client.c')
-rw-r--r-- | tests/test-libcustomindicator-dbus-client.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test-libcustomindicator-dbus-client.c b/tests/test-libcustomindicator-dbus-client.c index 8e49059..c6c31f0 100644 --- a/tests/test-libcustomindicator-dbus-client.c +++ b/tests/test-libcustomindicator-dbus-client.c @@ -77,6 +77,15 @@ prop_menu_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) return; } +gboolean +kill_func (gpointer userdata) +{ + g_main_loop_quit(mainloop); + g_warning("Forced to Kill"); + passed = FALSE; + return FALSE; +} + gint main (gint argc, gchar * argv[]) { @@ -144,6 +153,8 @@ main (gint argc, gchar * argv[]) G_TYPE_STRING, "Menu", G_TYPE_INVALID); + g_timeout_add_seconds(2, kill_func, NULL); + mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); |