[gnome-commander/ConvertWarningsToErrors] src/owner.cc: replace g_thread_create with g_thread_new



commit 85feced828639f18a2e88f4b6ec2bfc7e0f881ca
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date:   Fri Apr 28 18:40:22 2017 +0900

    src/owner.cc: replace g_thread_create with g_thread_new
    
    src/owner.cc:143:85: error: 'GThread* g_thread_create(GThreadFunc, gpointer, gboolean, GError**)' is 
deprecated: Use 'g_thread_new' instead [-Werror=deprecated-declarations]
         thread = g_thread_create ((GThreadFunc) perform_load_operation, this, TRUE, NULL);
    
    Use g_thread_new instead

 src/owner.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/owner.cc b/src/owner.cc
index 8f97333..53b2003 100644
--- a/src/owner.cc
+++ b/src/owner.cc
@@ -140,5 +140,5 @@ gpointer GnomeCmdOwner::perform_load_operation (GnomeCmdOwner *self)
 
 void GnomeCmdOwner::load_async()
 {
-    thread = g_thread_create ((GThreadFunc) perform_load_operation, this, TRUE, NULL);
+    thread = g_thread_new (NULL, (GThreadFunc) perform_load_operation, this);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]