[gvfs] afp: use g_thread_new() instead of deprecated g_thread_create()



commit 342b2f846cb0171d2d96d7f22c36ea60959b5c53
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Wed Aug 8 22:46:28 2012 +0200

    afp: use g_thread_new() instead of deprecated g_thread_create()

 daemon/gvfsafpconnection.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index aaeebc2..34b7b31 100644
--- a/daemon/gvfsafpconnection.c
+++ b/daemon/gvfsafpconnection.c
@@ -1858,16 +1858,10 @@ g_vfs_afp_connection_open_sync (GVfsAfpConnection *afp_connection,
 
   sync_data_init (&data, afp_connection, error);
   data.cancellable = cancellable;
-  
-  priv->worker_thread = g_thread_create (open_thread_func, &data,
-                                         FALSE, error);
-  if (!priv->worker_thread)
-    goto out;
 
+  priv->worker_thread = g_thread_new ("AFP Worker Thread", open_thread_func,
+                                      &data);
   sync_data_wait (&data);
-
-out:
-  
   sync_data_clear (&data);
 
   return data.res;



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