aboutsummaryrefslogtreecommitdiff
path: root/tests/test-gtk-submenu-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-20 16:52:02 -0500
committerTed Gould <ted@gould.cx>2010-08-20 16:52:02 -0500
commitb8b16bdfc5f52a306bacaa34776c3d159e16fbc2 (patch)
tree0f09c1ea4933f0e104663d187d825c5c07fa3ff9 /tests/test-gtk-submenu-client.c
parent49ff3029a6cc08287e39371f079dc2109a896901 (diff)
downloadlibdbusmenu-b8b16bdfc5f52a306bacaa34776c3d159e16fbc2.tar.gz
libdbusmenu-b8b16bdfc5f52a306bacaa34776c3d159e16fbc2.tar.bz2
libdbusmenu-b8b16bdfc5f52a306bacaa34776c3d159e16fbc2.zip
Showing items as part of the test to ensure we don't break.
Diffstat (limited to 'tests/test-gtk-submenu-client.c')
-rw-r--r--tests/test-gtk-submenu-client.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test-gtk-submenu-client.c b/tests/test-gtk-submenu-client.c
index 2e1ef7a..ec46122 100644
--- a/tests/test-gtk-submenu-client.c
+++ b/tests/test-gtk-submenu-client.c
@@ -102,6 +102,12 @@ timer_func (gpointer data)
}
passed = TRUE;
+ return FALSE;
+}
+
+gboolean
+finished_func (gpointer user_data)
+{
g_main_loop_quit(mainloop);
return FALSE;
}
@@ -127,7 +133,8 @@ main (int argc, char ** argv)
gtk_window_set_title(GTK_WINDOW(window), "libdbusmenu-gtk test");
gtk_widget_show(window);
- g_timeout_add_seconds(1, timer_func, menuitem);
+ g_timeout_add_seconds(2, timer_func, menuitem);
+ g_timeout_add_seconds(6, finished_func, menuitem);
g_debug("Entering Mainloop");
mainloop = g_main_loop_new(NULL, FALSE);