Commit ab0e89fc authored by Colomban Wendling's avatar Colomban Wendling

OVCCGtk: don't use deprecated thread API

parent 7eef3761
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment