diff options
Diffstat (limited to 'shell/e-component-registry.c')
-rw-r--r-- | shell/e-component-registry.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c index 2a69a974f7..d0a8cc146a 100644 --- a/shell/e-component-registry.c +++ b/shell/e-component-registry.c @@ -68,7 +68,7 @@ sleep_with_g_main_loop_timeout_callback (void *data) GMainLoop *loop; loop = (GMainLoop *) data; - g_main_quit (loop); + g_main_loop_quit (loop); return FALSE; } @@ -80,10 +80,10 @@ sleep_with_g_main_loop (int num_seconds) { GMainLoop *loop; - loop = g_main_new (TRUE); + loop = g_main_loop_new (NULL, TRUE); g_timeout_add (1000 * num_seconds, sleep_with_g_main_loop_timeout_callback, loop); - g_main_run (loop); - g_main_destroy (loop); + g_main_loop_run (loop); + g_main_loop_unref (loop); } static void |