diff options
author | Ted Gould <ted@gould.cx> | 2010-11-11 22:11:23 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-11-11 22:11:23 -0600 |
commit | fe0067388eef87cca7186e2554cdf838bb82a2b9 (patch) | |
tree | 1e3aa51b2d01fb388794d34adb36755fa06b1618 /tests/test-libappindicator.c | |
parent | 9bde70f2f1b96fe335dc11c941f64784c8f258f0 (diff) | |
parent | 178f821b27fd31a5059d76a9ccc0cf9ff551e35b (diff) | |
download | libayatana-appindicator-fe0067388eef87cca7186e2554cdf838bb82a2b9.tar.gz libayatana-appindicator-fe0067388eef87cca7186e2554cdf838bb82a2b9.tar.bz2 libayatana-appindicator-fe0067388eef87cca7186e2554cdf838bb82a2b9.zip |
Test fix for property test
Diffstat (limited to 'tests/test-libappindicator.c')
-rw-r--r-- | tests/test-libappindicator.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-libappindicator.c b/tests/test-libappindicator.c index 00a8f19..3860b69 100644 --- a/tests/test-libappindicator.c +++ b/tests/test-libappindicator.c @@ -267,6 +267,13 @@ test_libappindicator_set_menu (void) g_assert(label != NULL); g_assert(g_strcmp0(label, "Test Label") == 0); + /* Interesting, eh? We need this because we send out events on the bus + but they don't come back until the idle is run. So we need those + events to clear before removing the object */ + while (g_main_context_pending(NULL)) { + g_main_context_iteration(NULL, TRUE); + } + g_object_unref(G_OBJECT(ci)); return; } |