[evolution-data-server] tests: Remove unnecessary thread-default context manipulation.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] tests: Remove unnecessary thread-default context manipulation.
- Date: Mon, 11 Mar 2013 19:14:19 +0000 (UTC)
commit 11a5e7e43754584fbcfa765277e37a9bfbbfdf5f
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Mar 11 14:44:28 2013 -0400
tests: Remove unnecessary thread-default context manipulation.
.../libebook/client/test-client-view-operations.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/tests/libebook/client/test-client-view-operations.c
b/tests/libebook/client/test-client-view-operations.c
index 776f3b0..f22a030 100644
--- a/tests/libebook/client/test-client-view-operations.c
+++ b/tests/libebook/client/test-client-view-operations.c
@@ -146,9 +146,8 @@ test_view_thread (ThreadData *data)
ESource *source;
GError *error = NULL;
- context = g_main_context_new ();
+ context = g_main_context_get_thread_default ();
data->loop = g_main_loop_new (context, FALSE);
- g_main_context_push_thread_default (context);
/* Open the test book client in this thread */
registry = e_source_registry_new_sync (NULL, &error);
@@ -175,9 +174,7 @@ test_view_thread (ThreadData *data)
g_object_unref (registry);
g_object_unref (data->client);
- g_main_context_pop_thread_default (context);
g_main_loop_unref (data->loop);
- g_main_context_unref (context);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]