[gnome-commander] Use new GMutex API, fixes deprecated-declarations warning
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Use new GMutex API, fixes deprecated-declarations warning
- Date: Fri, 28 Apr 2017 21:33:33 +0000 (UTC)
commit 8c2472b21212f11357e780bbb600e3ee22d2dc1b
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sun Apr 16 20:18:54 2017 +0200
Use new GMutex API, fixes deprecated-declarations warning
src/dialogs/gnome-cmd-search-dialog.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index d6483c4..765ec1c 100644
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -566,7 +566,7 @@ gboolean SearchData::join_thread_func (SearchData *data)
g_thread_join (data->thread);
if (data->pdata.mutex)
- g_mutex_free (data->pdata.mutex);
+ g_mutex_clear (data->pdata.mutex);
return FALSE;
}
@@ -585,9 +585,9 @@ gboolean SearchData::start_generic_search()
}
if (!pdata.mutex)
- pdata.mutex = g_mutex_new ();
+ g_mutex_init(pdata.mutex);
- thread = g_thread_create ((GThreadFunc) perform_search_operation, this, TRUE, NULL);
+ thread = g_thread_new (NULL, (GThreadFunc) perform_search_operation, this);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]