diff options
author | Ted Gould <ted@gould.cx> | 2010-01-12 16:36:26 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-12 16:36:26 -0600 |
commit | d0abe1ebd34409a7074a39c6af017b2cfb49abf4 (patch) | |
tree | 7dc7532067460f6b049fc5f94c07a93e2bbcc62e | |
parent | cc31c237cd5da314e584570220bd0bf359b725be (diff) | |
download | ayatana-indicator-application-d0abe1ebd34409a7074a39c6af017b2cfb49abf4.tar.gz ayatana-indicator-application-d0abe1ebd34409a7074a39c6af017b2cfb49abf4.tar.bz2 ayatana-indicator-application-d0abe1ebd34409a7074a39c6af017b2cfb49abf4.zip |
Printing status in watcher
-rw-r--r-- | tests/test-libappindicator-fallback-watcher.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-libappindicator-fallback-watcher.c b/tests/test-libappindicator-fallback-watcher.c index 07d8da6..90c7db8 100644 --- a/tests/test-libappindicator-fallback-watcher.c +++ b/tests/test-libappindicator-fallback-watcher.c @@ -54,9 +54,13 @@ main (int argv, char ** argc) { g_type_init(); + g_debug("Waiting to init."); + /* Wait 1/4 a second, which should trigger the fallback */ g_usleep(250000); + g_debug("Initing"); + GError * error = NULL; DBusGConnection * session_bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error); if (error != NULL) { @@ -82,8 +86,12 @@ main (int argv, char ** argc) /* After we've got the name, let it unfallback, and then we'll drop again */ g_timeout_add(250, kill_func, NULL); + g_debug("Entering Mainloop"); + mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); + g_debug("Exiting"); + return 0; } |