summaryrefslogtreecommitdiff
path: root/thunar/thunar-gio-extensions.h
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-10-22 20:38:58 +0200
committerNick Schermer <nick@xfce.org>2012-10-22 20:40:42 +0200
commit5a0fd479b4a6e87ff9dea1597386ba935bf2aa6d (patch)
tree589fe89ad640855fbbd910c77caf776f7b7e373e /thunar/thunar-gio-extensions.h
parent7012c86e217454141e24f7d819c4a93178a01c1f (diff)
downloadthunar-5a0fd479b4a6e87ff9dea1597386ba935bf2aa6d.tar.gz
Uniform the deep copy function.
There were 2 versions used. Use the one in thunarx and use marcos for deep appending/prepending.
Diffstat (limited to 'thunar/thunar-gio-extensions.h')
-rw-r--r--thunar/thunar-gio-extensions.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/thunar/thunar-gio-extensions.h b/thunar/thunar-gio-extensions.h
index 4fa79d4e..f27832ea 100644
--- a/thunar/thunar-gio-extensions.h
+++ b/thunar/thunar-gio-extensions.h
@@ -64,12 +64,12 @@ GType thunar_g_file_list_get_type (void);
GList *thunar_g_file_list_new_from_string (const gchar *string);
gchar **thunar_g_file_list_to_stringv (GList *list);
gchar *thunar_g_file_list_to_string (GList *list);
-GList *thunar_g_file_list_append (GList *list,
- GFile *file);
-GList *thunar_g_file_list_prepend (GList *list,
- GFile *file);
-GList *thunar_g_file_list_copy (GList *list);
-void thunar_g_file_list_free (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_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
gboolean thunar_g_app_info_launch (GAppInfo *info,
GFile *working_directory,