[gnome-commander/ConvertWarningsToErrors] Use new GMutex API, fixes deprecated-declarations warning
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] Use new GMutex API, fixes deprecated-declarations warning
- Date: Sun, 16 Apr 2017 18:36:53 +0000 (UTC)
commit 30b043488b239e939672aa530c091eca7c1033f3
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]