[Xfce4-commits] [thunar-plugins/thunar-vcs-plugin] 08/09: Replace g_thread_create by g_thread_new

noreply at xfce.org noreply at xfce.org
Sat Jun 2 05:09:42 CEST 2018


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository thunar-plugins/thunar-vcs-plugin.

commit a412ebc238579d798a25ebf130bd12a9d93af554
Author: Andre Miranda <andreldm at xfce.org>
Date:   Fri Jun 1 23:54:24 2018 -0300

    Replace g_thread_create by g_thread_new
---
 tvp-svn-helper/tsh-add.c        | 2 +-
 tvp-svn-helper/tsh-blame.c      | 2 +-
 tvp-svn-helper/tsh-checkout.c   | 2 +-
 tvp-svn-helper/tsh-cleanup.c    | 2 +-
 tvp-svn-helper/tsh-commit.c     | 2 +-
 tvp-svn-helper/tsh-copy.c       | 2 +-
 tvp-svn-helper/tsh-delete.c     | 2 +-
 tvp-svn-helper/tsh-diff.c       | 4 ++--
 tvp-svn-helper/tsh-export.c     | 2 +-
 tvp-svn-helper/tsh-import.c     | 2 +-
 tvp-svn-helper/tsh-lock.c       | 2 +-
 tvp-svn-helper/tsh-log.c        | 4 ++--
 tvp-svn-helper/tsh-move.c       | 2 +-
 tvp-svn-helper/tsh-properties.c | 4 ++--
 tvp-svn-helper/tsh-relocate.c   | 2 +-
 tvp-svn-helper/tsh-resolved.c   | 2 +-
 tvp-svn-helper/tsh-revert.c     | 2 +-
 tvp-svn-helper/tsh-status.c     | 4 ++--
 tvp-svn-helper/tsh-switch.c     | 2 +-
 tvp-svn-helper/tsh-unlock.c     | 2 +-
 tvp-svn-helper/tsh-update.c     | 2 +-
 21 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/tvp-svn-helper/tsh-add.c b/tvp-svn-helper/tsh-add.c
index fe1c3c6..e8eb71c 100644
--- a/tvp-svn-helper/tsh-add.c
+++ b/tvp-svn-helper/tsh-add.c
@@ -164,6 +164,6 @@ GThread *tsh_add (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->dialog = TSH_NOTIFY_DIALOG (dialog);
 	args->files = file_list;
 
-	return g_thread_create (add_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, add_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-blame.c b/tvp-svn-helper/tsh-blame.c
index b861ede..6a0092d 100644
--- a/tvp-svn-helper/tsh-blame.c
+++ b/tvp-svn-helper/tsh-blame.c
@@ -127,6 +127,6 @@ GThread *tsh_blame (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->dialog = TSH_BLAME_DIALOG (dialog);
 	args->file = files?files[0]:"";
 
-	return g_thread_create (blame_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, blame_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-checkout.c b/tvp-svn-helper/tsh-checkout.c
index e3791d8..51993c5 100644
--- a/tvp-svn-helper/tsh-checkout.c
+++ b/tvp-svn-helper/tsh-checkout.c
@@ -129,6 +129,6 @@ GThread *tsh_checkout (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->path = path;
 	args->url =	repository;
 
-	return g_thread_create (checkout_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, checkout_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-cleanup.c b/tvp-svn-helper/tsh-cleanup.c
index 4df7231..a357bce 100644
--- a/tvp-svn-helper/tsh-cleanup.c
+++ b/tvp-svn-helper/tsh-cleanup.c
@@ -141,6 +141,6 @@ GThread *tsh_cleanup (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
   args->dialog = dialog;
 	args->path = path;
 
-	return g_thread_create (cleanup_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, cleanup_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-commit.c b/tvp-svn-helper/tsh-commit.c
index 6d766a5..e979329 100644
--- a/tvp-svn-helper/tsh-commit.c
+++ b/tvp-svn-helper/tsh-commit.c
@@ -300,6 +300,6 @@ GThread *tsh_commit (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->dialog = TSH_NOTIFY_DIALOG (dialog);
 	args->files = file_list;
 
-	return g_thread_create (commit_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, commit_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-copy.c b/tvp-svn-helper/tsh-copy.c
index 92f43c3..4d14352 100644
--- a/tvp-svn-helper/tsh-copy.c
+++ b/tvp-svn-helper/tsh-copy.c
@@ -200,6 +200,6 @@ GThread *tsh_copy (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->from = from;
 	args->to = to;
 
-	return g_thread_create (copy_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, copy_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-delete.c b/tvp-svn-helper/tsh-delete.c
index 514b796..6868159 100644
--- a/tvp-svn-helper/tsh-delete.c
+++ b/tvp-svn-helper/tsh-delete.c
@@ -171,6 +171,6 @@ GThread *tsh_delete (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->dialog = TSH_NOTIFY_DIALOG (dialog);
 	args->files = files;
 
-	return g_thread_create (delete_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, delete_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-diff.c b/tvp-svn-helper/tsh-diff.c
index fb344b3..62a063d 100644
--- a/tvp-svn-helper/tsh-diff.c
+++ b/tvp-svn-helper/tsh-diff.c
@@ -223,7 +223,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 
 static void create_diff_thread(TshDiffDialog *dialog, struct thread_args *args)
 {
-	GThread *thread = g_thread_create(diff_thread, args, TRUE, NULL);
+	GThread *thread = g_thread_new (NULL, diff_thread, args);
   if (thread)
     tsh_replace_thread(thread);
   else
@@ -248,6 +248,6 @@ GThread *tsh_diff (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 
   g_signal_connect(dialog, "refresh-clicked", G_CALLBACK(create_diff_thread), args);
 
-  return g_thread_create (diff_thread, args, TRUE, NULL);
+  return g_thread_new (NULL, diff_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-export.c b/tvp-svn-helper/tsh-export.c
index 5b4a909..ec9bf1f 100644
--- a/tvp-svn-helper/tsh-export.c
+++ b/tvp-svn-helper/tsh-export.c
@@ -148,6 +148,6 @@ GThread *tsh_export (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->path = path;
 	args->url =	repository;
 
-	return g_thread_create (export_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, export_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-import.c b/tvp-svn-helper/tsh-import.c
index 2812658..2578201 100644
--- a/tvp-svn-helper/tsh-import.c
+++ b/tvp-svn-helper/tsh-import.c
@@ -158,6 +158,6 @@ GThread *tsh_import (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->path = path;
 	args->url =	repository;
 
-	return g_thread_create (import_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, import_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-lock.c b/tvp-svn-helper/tsh-lock.c
index 3a749b3..30be5f5 100644
--- a/tvp-svn-helper/tsh-lock.c
+++ b/tvp-svn-helper/tsh-lock.c
@@ -150,6 +150,6 @@ GThread *tsh_lock (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
   args->message = message;
   args->steal = steal;
 
-	return g_thread_create (lock_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, lock_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-log.c b/tvp-svn-helper/tsh-log.c
index abfd985..6406688 100644
--- a/tvp-svn-helper/tsh-log.c
+++ b/tvp-svn-helper/tsh-log.c
@@ -154,7 +154,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 
 static void create_log_thread(TshLogDialog *dialog, struct thread_args *args)
 {
-	GThread *thread = g_thread_create (log_thread, args, TRUE, NULL);
+	GThread *thread = g_thread_new (NULL, log_thread, args);
   if (thread)
     tsh_replace_thread (thread);
   else
@@ -182,6 +182,6 @@ GThread *tsh_log (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 
   g_signal_connect(dialog, "refresh-clicked", G_CALLBACK(create_log_thread), args);
 
-	return g_thread_create (log_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, log_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-move.c b/tvp-svn-helper/tsh-move.c
index 369a319..b77763d 100644
--- a/tvp-svn-helper/tsh-move.c
+++ b/tvp-svn-helper/tsh-move.c
@@ -191,6 +191,6 @@ GThread *tsh_move (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->from = from;
 	args->to = to;
 
-	return g_thread_create (move_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, move_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-properties.c b/tvp-svn-helper/tsh-properties.c
index 889df2e..cf876ed 100644
--- a/tvp-svn-helper/tsh-properties.c
+++ b/tvp-svn-helper/tsh-properties.c
@@ -215,7 +215,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 
 static void create_properties_thread (TshPropertiesDialog *dialog, struct thread_args *args)
 {
-	GThread *thread = g_thread_create (properties_thread, args, TRUE, NULL);
+	GThread *thread = g_thread_new (NULL, properties_thread, args);
   if (thread)
     tsh_replace_thread (thread);
   else
@@ -266,6 +266,6 @@ GThread *tsh_properties (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
   g_signal_connect(dialog, "set-clicked", G_CALLBACK(set_property), args);
   g_signal_connect(dialog, "delete-clicked", G_CALLBACK(delete_property), args);
 
-	return g_thread_create (properties_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, properties_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-relocate.c b/tvp-svn-helper/tsh-relocate.c
index 0763bab..e741d18 100644
--- a/tvp-svn-helper/tsh-relocate.c
+++ b/tvp-svn-helper/tsh-relocate.c
@@ -161,6 +161,6 @@ GThread *tsh_relocate (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
   args->from = from;
   args->to = to;
 
-  return g_thread_create (relocate_thread, args, TRUE, NULL);
+  return g_thread_new (NULL, relocate_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-resolved.c b/tvp-svn-helper/tsh-resolved.c
index 02f8c77..bf06b9c 100644
--- a/tvp-svn-helper/tsh-resolved.c
+++ b/tvp-svn-helper/tsh-resolved.c
@@ -148,6 +148,6 @@ GThread *tsh_resolved (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->dialog = TSH_NOTIFY_DIALOG (dialog);
 	args->files = files;
 
-	return g_thread_create (resolved_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, resolved_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-revert.c b/tvp-svn-helper/tsh-revert.c
index c86994b..e4846ce 100644
--- a/tvp-svn-helper/tsh-revert.c
+++ b/tvp-svn-helper/tsh-revert.c
@@ -148,6 +148,6 @@ GThread *tsh_revert (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->dialog = TSH_NOTIFY_DIALOG (dialog);
 	args->files = files;
 
-	return g_thread_create (revert_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, revert_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-status.c b/tvp-svn-helper/tsh-status.c
index 3906674..36defdb 100644
--- a/tvp-svn-helper/tsh-status.c
+++ b/tvp-svn-helper/tsh-status.c
@@ -136,7 +136,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 
 static void create_status_thread(TshStatusDialog *dialog, struct thread_args *args)
 {
-	GThread *thread = g_thread_create (status_thread, args, TRUE, NULL);
+	GThread *thread = g_thread_new (NULL, status_thread, args);
   if (thread)
     tsh_replace_thread (thread);
   else
@@ -163,6 +163,6 @@ GThread *tsh_status (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 
   g_signal_connect(dialog, "refresh-clicked", G_CALLBACK(create_status_thread), args);
 
-	return g_thread_create (status_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, status_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-switch.c b/tvp-svn-helper/tsh-switch.c
index 3fe2db1..bd6f891 100644
--- a/tvp-svn-helper/tsh-switch.c
+++ b/tvp-svn-helper/tsh-switch.c
@@ -149,6 +149,6 @@ GThread *tsh_switch (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
   args->path = path;
   args->url =	repository;
 
-  return g_thread_create (switch_thread, args, TRUE, NULL);
+  return g_thread_new (NULL, switch_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-unlock.c b/tvp-svn-helper/tsh-unlock.c
index fcc9547..d1c4e06 100644
--- a/tvp-svn-helper/tsh-unlock.c
+++ b/tvp-svn-helper/tsh-unlock.c
@@ -129,6 +129,6 @@ GThread *tsh_unlock (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->dialog = TSH_NOTIFY_DIALOG (dialog);
 	args->files = files;
 
-	return g_thread_create (unlock_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, unlock_thread, args);
 }
 
diff --git a/tvp-svn-helper/tsh-update.c b/tvp-svn-helper/tsh-update.c
index 60fd2bd..34fafa3 100644
--- a/tvp-svn-helper/tsh-update.c
+++ b/tvp-svn-helper/tsh-update.c
@@ -135,6 +135,6 @@ GThread *tsh_update (gchar **files, svn_client_ctx_t *ctx, apr_pool_t *pool)
 	args->dialog = TSH_NOTIFY_DIALOG (dialog);
 	args->files = files;
 
-	return g_thread_create (update_thread, args, TRUE, NULL);
+	return g_thread_new (NULL, update_thread, args);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list