diff options
author | Ted Gould <ted@gould.cx> | 2010-02-06 09:44:32 -0800 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-06 09:44:32 -0800 |
commit | 982498c637c6afc0eefca913d3fc875b93ec22cc (patch) | |
tree | 4a46ea211f93b5d90d33b64fe699a5473db81e9f /tests | |
parent | b9152c356c099d051109fcd03e68c745b34899ec (diff) | |
download | ayatana-indicator-application-982498c637c6afc0eefca913d3fc875b93ec22cc.tar.gz ayatana-indicator-application-982498c637c6afc0eefca913d3fc875b93ec22cc.tar.bz2 ayatana-indicator-application-982498c637c6afc0eefca913d3fc875b93ec22cc.zip |
Making sure the client has time to setup.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-libappindicator-status-server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-libappindicator-status-server.c b/tests/test-libappindicator-status-server.c index c7a8ecd..9e58ba9 100644 --- a/tests/test-libappindicator-status-server.c +++ b/tests/test-libappindicator-status-server.c @@ -21,6 +21,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <stdlib.h> #include <dbus/dbus-glib.h> #include <dbus/dbus-glib-lowlevel.h> #include <glib.h> @@ -56,6 +57,8 @@ main (gint argc, gchar * argv[]) { g_type_init(); + g_usleep(100000); + g_debug("DBus ID: %s", dbus_connection_get_server_id(dbus_g_connection_get_connection(dbus_g_bus_get(DBUS_BUS_SESSION, NULL)))); AppIndicator * ci = app_indicator_new ("my-id", "my-icon-name", APP_INDICATOR_CATEGORY_APPLICATION_STATUS); |