[Xfce4-commits] r29793 - in thunar/branches/migration-to-gio: . thunar
Jannis Pohlmann
jannis at xfce.org
Mon Apr 13 13:30:35 CEST 2009
Author: jannis
Date: 2009-04-13 11:30:35 +0000 (Mon, 13 Apr 2009)
New Revision: 29793
Modified:
thunar/branches/migration-to-gio/ChangeLog
thunar/branches/migration-to-gio/thunar/thunar-renamer-dialog.c
Log:
* thunar/thunar-renamer-dialog.c: Use a GFile instead of a
ThunarVfsPath list in thunar_renamer_dialog_drag_data_received().
Modified: thunar/branches/migration-to-gio/ChangeLog
===================================================================
--- thunar/branches/migration-to-gio/ChangeLog 2009-04-13 11:22:23 UTC (rev 29792)
+++ thunar/branches/migration-to-gio/ChangeLog 2009-04-13 11:30:35 UTC (rev 29793)
@@ -1,5 +1,10 @@
2009-04-13 Jannis Pohlmann <jannis at xfce.org>
+ * thunar/thunar-renamer-dialog.c: Use a GFile instead of a
+ ThunarVfsPath list in thunar_renamer_dialog_drag_data_received().
+
+2009-04-13 Jannis Pohlmann <jannis at xfce.org>
+
* thunar/thunar-list-model.c: Remove all ThunarVFS references left.
2009-04-13 Jannis Pohlmann <jannis at xfce.org>
Modified: thunar/branches/migration-to-gio/thunar/thunar-renamer-dialog.c
===================================================================
--- thunar/branches/migration-to-gio/thunar/thunar-renamer-dialog.c 2009-04-13 11:22:23 UTC (rev 29792)
+++ thunar/branches/migration-to-gio/thunar/thunar-renamer-dialog.c 2009-04-13 11:30:35 UTC (rev 29793)
@@ -1329,7 +1329,7 @@
ThunarRenamerDialog *renamer_dialog)
{
ThunarFile *file;
- GList *path_list;
+ GList *file_list;
GList *lp;
GtkTreeModel *model;
GtkTreePath *path;
@@ -1361,14 +1361,14 @@
position = -1;
}
- /* determine the path list from the selection_data */
- path_list = thunar_vfs_path_list_from_string ((const gchar *) selection_data->data, NULL);
+ /* determine the file list from the selection_data */
+ file_list = g_file_list_new_from_string ((const gchar *) selection_data->data);
/* add all paths to the model */
- for (lp = path_list; lp != NULL; lp = lp->next)
+ for (lp = file_list; lp != NULL; lp = lp->next)
{
/* determine the file for the path */
- file = thunar_file_get_for_path (lp->data, NULL);
+ file = thunar_file_get (lp->data, NULL);
if (G_LIKELY (file != NULL))
{
/* insert the file in the model */
@@ -1379,18 +1379,18 @@
position++;
/* release the file */
- g_object_unref (G_OBJECT (file));
+ g_object_unref (file);
}
- /* release the path */
- thunar_vfs_path_unref (lp->data);
+ /* release the GFile */
+ g_object_unref (lp->data);
}
/* finish the drag */
- gtk_drag_finish (context, (path_list != NULL), FALSE, time);
+ gtk_drag_finish (context, (file_list != NULL), FALSE, time);
/* release the list */
- g_list_free (path_list);
+ g_list_free (file_list);
}
/* stop the emission of the "drag-data-received" signal */
More information about the Xfce4-commits
mailing list