[tracker/tracker-0.10] libtracker-common: Do not push thread-default context in gconfdbus



commit 209b538ed21e9ccf18ece06b391026ef6612b64f
Author: Jürg Billeter <j bitron ch>
Date:   Thu Apr 7 12:45:15 2011 +0200

    libtracker-common: Do not push thread-default context in gconfdbus
    
    We cannot always push the global default context as a thread-default
    context. The previous commit makes sure that the thread-default context
    is always set to the global default context.

 src/libtracker-common/tracker-locale-gconfdbus.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-common/tracker-locale-gconfdbus.c b/src/libtracker-common/tracker-locale-gconfdbus.c
index 43aeb32..803b57d 100644
--- a/src/libtracker-common/tracker-locale-gconfdbus.c
+++ b/src/libtracker-common/tracker-locale-gconfdbus.c
@@ -307,11 +307,6 @@ tracker_locale_gconfdbus_init (void)
 
 		g_message ("Retrieving locale from GConf is ENABLED");
 
-		/* We want to use this connection globally, so make sure it uses the
-		 * default mainloop */
-
-		g_main_context_push_thread_default (NULL);
-
 		connection = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error);
 
 		if (error) {
@@ -406,8 +401,6 @@ tracker_locale_gconfdbus_init (void)
 				g_free (str);
 			}
 		}
-
-		g_main_context_pop_thread_default (NULL);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]