From da975dadf59db4410ee1796b93fd9c423958b98d Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Wed, 13 Feb 2013 18:46:30 +0100 Subject: Replace deprecated static mutexes --- calendar/gui/e-meeting-store.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c index 88e4be47e1..d1f2d6acb7 100644 --- a/calendar/gui/e-meeting-store.c +++ b/calendar/gui/e-meeting-store.c @@ -1600,7 +1600,7 @@ freebusy_async (gpointer data) EMeetingAttendee *attendee = fbd->attendee; gchar *default_fb_uri = NULL; gchar *fburi = NULL; - static GStaticMutex mutex = G_STATIC_MUTEX_INIT; + static GMutex mutex; EMeetingStorePrivate *priv = fbd->store->priv; if (fbd->client) { @@ -1608,7 +1608,7 @@ freebusy_async (gpointer data) /* FIXME This a workaround for getting all the free busy * information for the users. We should be able to * get free busy asynchronously. */ - g_static_mutex_lock (&mutex); + g_mutex_lock (&mutex); priv->num_queries++; sigid = g_signal_connect ( fbd->client, "free-busy-data", @@ -1618,7 +1618,7 @@ freebusy_async (gpointer data) fbd->endt, fbd->users, NULL, NULL); g_signal_handler_disconnect (fbd->client, sigid); priv->num_queries--; - g_static_mutex_unlock (&mutex); + g_mutex_unlock (&mutex); g_slist_foreach (fbd->users, (GFunc) g_free, NULL); g_slist_free (fbd->users); -- cgit v1.2.3