[tracker/tracker-0.10] libtracker-common: Make sure the first_time trick survives locale_shutdown



commit 25927863c116296b8a19dd261dda78f639699b07
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Apr 5 15:08:19 2011 +0200

    libtracker-common: Make sure the first_time trick survives locale_shutdown

 src/libtracker-common/tracker-locale-gconfdbus.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-locale-gconfdbus.c b/src/libtracker-common/tracker-locale-gconfdbus.c
index 2225315..d1362c2 100644
--- a/src/libtracker-common/tracker-locale-gconfdbus.c
+++ b/src/libtracker-common/tracker-locale-gconfdbus.c
@@ -52,6 +52,7 @@ static guint registration_id = 0;
 static GStaticMutex subscribers_mutex = G_STATIC_MUTEX_INIT;
 GDBusNodeInfo *introspection_data = NULL;
 static gboolean maemo_mode = TRUE;
+static gboolean first_time = TRUE;
 
 /* gconf keys for tracker locales, as defined in:
  * http://apidocs.meego.com/1.0/mtf/i18n.html
@@ -263,7 +264,6 @@ on_gconfd_dbus_appeared (GDBusConnection *connection,
                          gpointer         user_data)
 {
 	guint i;
-	static gboolean first_time = TRUE;
 
 	service_running = TRUE;
 	add_notify ();
@@ -384,6 +384,8 @@ tracker_locale_gconfdbus_init (void)
 			return;
 		}
 
+		first_time = TRUE;
+
 		watch_name_id = g_bus_watch_name_on_connection (connection,
 		                                                GCONF_DBUS_SERVICE,
 		                                                G_BUS_NAME_WATCHER_FLAGS_NONE,



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