diff options
author | Sebastien Bacher <seb128@ubuntu.com> | 2010-08-26 23:35:01 +0200 |
---|---|---|
committer | Sebastien Bacher <seb128@ubuntu.com> | 2010-08-26 23:35:01 +0200 |
commit | b73234dae98ad8a921457858ff19079b8266d295 (patch) | |
tree | edaf13a853cadce20f972747a1ce0e1288af65a8 /tests/test-gtk-submenu-server.c | |
parent | e8704dfe47c14af9c395449ad78fb3d8abd1b416 (diff) | |
parent | 411bc164d198eda669a4bf48de2510c80f94702d (diff) | |
download | libdbusmenu-b73234dae98ad8a921457858ff19079b8266d295.tar.gz libdbusmenu-b73234dae98ad8a921457858ff19079b8266d295.tar.bz2 libdbusmenu-b73234dae98ad8a921457858ff19079b8266d295.zip |
releasing version 0.3.12-0ubuntu1
Diffstat (limited to 'tests/test-gtk-submenu-server.c')
-rw-r--r-- | tests/test-gtk-submenu-server.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/test-gtk-submenu-server.c b/tests/test-gtk-submenu-server.c index ba3993e..11cede0 100644 --- a/tests/test-gtk-submenu-server.c +++ b/tests/test-gtk-submenu-server.c @@ -39,6 +39,17 @@ timer_func (gpointer data) return FALSE; } +static gboolean +show_item (gpointer pmi) +{ + DbusmenuMenuitem * mi = DBUSMENU_MENUITEM(pmi); + g_debug("Showing item"); + + dbusmenu_menuitem_show_to_user(mi, 0); + + return FALSE; +} + DbusmenuMenuitem * add_item(DbusmenuMenuitem * parent, const char * label) { @@ -81,12 +92,16 @@ main (int argc, char ** argv) add_item(item, "1.2"); add_item(item, "1.3"); + g_timeout_add_seconds(2, show_item, item); + item = add_item(root, "Folder 2"); add_item(item, "2.1"); add_item(item, "2.2"); add_item(item, "2.3"); - g_timeout_add_seconds(3, timer_func, NULL); + g_timeout_add_seconds(4, show_item, item); + + g_timeout_add_seconds(6, timer_func, NULL); mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); |