Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Open Virtual Carcassonne Clone
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jonathan Michalon
Open Virtual Carcassonne Clone
Commits
ab0e89fc
Commit
ab0e89fc
authored
Dec 31, 2013
by
Colomban Wendling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OVCCGtk: don't use deprecated thread API
parent
7eef3761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
clients/ovcc-gtk/src/utils.c
clients/ovcc-gtk/src/utils.c
+3
-3
No files found.
clients/ovcc-gtk/src/utils.c
View file @
ab0e89fc
...
@@ -45,7 +45,7 @@ data_get_path (const gchar *file)
...
@@ -45,7 +45,7 @@ data_get_path (const gchar *file)
static
GtkMessageType
ST_last_msg_type
=
0
;
static
GtkMessageType
ST_last_msg_type
=
0
;
static
GTimer
*
ST_last_msg_timer
=
NULL
;
static
GTimer
*
ST_last_msg_timer
=
NULL
;
static
G
StaticMutex
ST_msg_mutex
=
G_STATIC_MUTEX_INIT
;
static
G
Mutex
ST_msg_mutex
;
/* Manages rate limit (not to show too much maybe useless messages to the user,
/* 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
* which is bothering and probably useless anyway (if there is already allot of
...
@@ -63,7 +63,7 @@ msg_showv (GtkMessageType type,
...
@@ -63,7 +63,7 @@ msg_showv (GtkMessageType type,
* the message is shown when the user is resizing the window and don't stop
* 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
* resizing and re-get an error message. This implementation needs
* multi-threading to be enabled. */
* 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 "
g_warning
(
"Dropping message due to locked dialog "
"(there is already an error displayed)"
);
"(there is already an error displayed)"
);
return
;
return
;
...
@@ -111,7 +111,7 @@ msg_showv (GtkMessageType type,
...
@@ -111,7 +111,7 @@ msg_showv (GtkMessageType type,
ST_last_msg_type
=
type
;
ST_last_msg_type
=
type
;
g_timer_start
(
ST_last_msg_timer
);
g_timer_start
(
ST_last_msg_timer
);
g_
static_
mutex_unlock
(
&
ST_msg_mutex
);
g_mutex_unlock
(
&
ST_msg_mutex
);
}
}
void
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment