From ab0e89fc560cc63158da13d496d944725f8c025f Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 31 Dec 2013 02:38:58 +0100 Subject: [PATCH] OVCCGtk: don't use deprecated thread API --- clients/ovcc-gtk/src/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/ovcc-gtk/src/utils.c b/clients/ovcc-gtk/src/utils.c index 9cb7dde..1474450 100644 --- a/clients/ovcc-gtk/src/utils.c +++ b/clients/ovcc-gtk/src/utils.c @@ -45,7 +45,7 @@ data_get_path (const gchar *file) static GtkMessageType ST_last_msg_type = 0; static GTimer *ST_last_msg_timer = NULL; -static GStaticMutex ST_msg_mutex = G_STATIC_MUTEX_INIT; +static GMutex ST_msg_mutex; /* Manages rate limit (not to show too much maybe useless messages to the user, * which is bothering and probably useless anyway (if there is already allot of @@ -63,7 +63,7 @@ msg_showv (GtkMessageType type, * the message is shown when the user is resizing the window and don't stop * resizing and re-get an error message. This implementation needs * multi-threading to be enabled. */ - if (! g_static_mutex_trylock (&ST_msg_mutex)) { + if (! g_mutex_trylock (&ST_msg_mutex)) { g_warning ("Dropping message due to locked dialog " "(there is already an error displayed)"); return; @@ -111,7 +111,7 @@ msg_showv (GtkMessageType type, ST_last_msg_type = type; g_timer_start (ST_last_msg_timer); - g_static_mutex_unlock (&ST_msg_mutex); + g_mutex_unlock (&ST_msg_mutex); } void -- GitLab