diff --git a/clients/ovcc-gtk/src/utils.c b/clients/ovcc-gtk/src/utils.c index 9cb7dde2ec6673ee887880a4bd6205936b1396b6..14744504a2018700901d1c2f6ca96456bed89110 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