From 785c8997e9a705dee7e43a267f71d9cdeb73de0a Mon Sep 17 00:00:00 2001 From: Alexander Schwinn <alexxcons@xfce.org> Date: Mon, 5 Apr 2021 01:15:49 +0200 Subject: [PATCH] thunar_g_file_list_append --> thunar_g_list_append_deep Fixed confusing naming: Macro has nothing to with g_files --- thunar/thunar-application.c | 4 ++-- thunar/thunar-dbus-service.c | 6 +++--- thunar/thunar-gio-extensions.h | 2 +- thunar/thunar-launcher.c | 2 +- thunar/thunar-transfer-job.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/thunar/thunar-application.c b/thunar/thunar-application.c index 1b2fd11a3..10a508874 100644 --- a/thunar/thunar-application.c +++ b/thunar/thunar-application.c @@ -2417,8 +2417,8 @@ thunar_application_restore_files (ThunarApplication *application, /* TODO we might have to distinguish between URIs and paths here */ target_path = g_file_new_for_commandline_arg (original_uri); - source_path_list = thunar_g_file_list_append (source_path_list, thunar_file_get_file (lp->data)); - target_path_list = thunar_g_file_list_append (target_path_list, target_path); + source_path_list = thunar_g_list_append_deep (source_path_list, thunar_file_get_file (lp->data)); + target_path_list = thunar_g_list_append_deep (target_path_list, target_path); g_object_unref (target_path); } diff --git a/thunar/thunar-dbus-service.c b/thunar/thunar-dbus-service.c index 780648857..298e24039 100644 --- a/thunar/thunar-dbus-service.c +++ b/thunar/thunar-dbus-service.c @@ -852,7 +852,7 @@ thunar_dbus_service_move_to_trash (ThunarDBusTrash *object, /* determine the path for the filename */ /* TODO Not sure this will work as expected */ file = g_file_new_for_commandline_arg (filename); - file_list = thunar_g_file_list_append (file_list, file); + file_list = thunar_g_list_append_deep (file_list, file); g_object_unref (file); } @@ -1195,7 +1195,7 @@ thunar_dbus_service_transfer_files (ThunarDBusTransferMode transfer_mode, if (filename != NULL) { file = g_file_new_for_commandline_arg (filename); - source_file_list = thunar_g_file_list_append (source_file_list, file); + source_file_list = thunar_g_list_append_deep (source_file_list, file); g_object_unref (file); g_free (filename); } @@ -1208,7 +1208,7 @@ thunar_dbus_service_transfer_files (ThunarDBusTransferMode transfer_mode, if (filename != NULL) { file = g_file_new_for_commandline_arg (filename); - target_file_list = thunar_g_file_list_append (target_file_list, file); + target_file_list = thunar_g_list_append_deep (target_file_list, file); g_object_unref (file); g_free (filename); } diff --git a/thunar/thunar-gio-extensions.h b/thunar/thunar-gio-extensions.h index d4fd1fea0..d572e5bee 100644 --- a/thunar/thunar-gio-extensions.h +++ b/thunar/thunar-gio-extensions.h @@ -77,7 +77,7 @@ gchar **thunar_g_file_list_to_stringv (GList *list); GList *thunar_g_file_list_get_parents (GList *list); /* deep copy jobs for GLists */ -#define thunar_g_file_list_append(list,object) g_list_append (list, g_object_ref (G_OBJECT (object))) +#define thunar_g_list_append_deep(list,object) g_list_append (list, g_object_ref (G_OBJECT (object))) #define thunar_g_file_list_prepend(list,object) g_list_prepend (list, g_object_ref (G_OBJECT (object))) #define thunar_g_file_list_copy thunarx_file_info_list_copy #define thunar_g_file_list_free thunarx_file_info_list_free diff --git a/thunar/thunar-launcher.c b/thunar/thunar-launcher.c index 4e6399f1c..ebde68d8c 100644 --- a/thunar/thunar-launcher.c +++ b/thunar/thunar-launcher.c @@ -849,7 +849,7 @@ thunar_launcher_open_files (ThunarLauncher *launcher, } /* append our new URI to the list */ - file_list = thunar_g_file_list_append (file_list, thunar_file_get_file (lp->data)); + file_list = thunar_g_list_append_deep (file_list, thunar_file_get_file (lp->data)); /* (re)insert the URI list for the application */ g_hash_table_insert (applications, app_info, file_list); diff --git a/thunar/thunar-transfer-job.c b/thunar/thunar-transfer-job.c index 9aea34364..43ad29334 100644 --- a/thunar/thunar-transfer-job.c +++ b/thunar/thunar-transfer-job.c @@ -1670,7 +1670,7 @@ thunar_transfer_job_new (GList *source_node_list, job->source_node_list = g_list_append (job->source_node_list, node); /* append target file */ - job->target_file_list = thunar_g_file_list_append (job->target_file_list, tp->data); + job->target_file_list = thunar_g_list_append_deep (job->target_file_list, tp->data); } } -- GitLab