aboutsummaryrefslogtreecommitdiff
path: root/tests/test-libappindicator-status-server.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-06 09:44:32 -0800
committerTed Gould <ted@gould.cx>2010-02-06 09:44:32 -0800
commit982498c637c6afc0eefca913d3fc875b93ec22cc (patch)
tree4a46ea211f93b5d90d33b64fe699a5473db81e9f /tests/test-libappindicator-status-server.c
parentb9152c356c099d051109fcd03e68c745b34899ec (diff)
downloadlibayatana-appindicator-982498c637c6afc0eefca913d3fc875b93ec22cc.tar.gz
libayatana-appindicator-982498c637c6afc0eefca913d3fc875b93ec22cc.tar.bz2
libayatana-appindicator-982498c637c6afc0eefca913d3fc875b93ec22cc.zip
Making sure the client has time to setup.
Diffstat (limited to 'tests/test-libappindicator-status-server.c')
-rw-r--r--tests/test-libappindicator-status-server.c3
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);