diff options
author | Stef Walter <stefw@gnome.org> | 2012-01-11 07:44:32 +0100 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2012-01-13 14:45:55 +0100 |
commit | f2e275f25eebd5456967d431580668fcbbcf0601 (patch) | |
tree | 75a156a418afd020689f40352c2e7e92d3b3463d /egg/egg-testing.c | |
parent | b36268afc1f5c2b1bcae605d39da8afc4be49bab (diff) | |
download | libsecret-f2e275f25eebd5456967d431580668fcbbcf0601.tar.gz |
Prompting and item deletion
Diffstat (limited to 'egg/egg-testing.c')
-rw-r--r-- | egg/egg-testing.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/egg/egg-testing.c b/egg/egg-testing.c index 0fed4a1..7fa2a60 100644 --- a/egg/egg-testing.c +++ b/egg/egg-testing.c @@ -114,6 +114,17 @@ egg_test_wait_until (int timeout) return (wait_until_impl) (timeout); } +void +egg_test_wait_idle (void) +{ + GMainContext *context; + + g_assert (wait_until_impl != NULL); + + context = g_main_context_get_thread_default (); + while (g_main_context_iteration (context, FALSE)); +} + static GMainLoop *wait_loop = NULL; static void |