[Xfce4-commits] <xfdesktop:jannis/port-to-gio> Use a GFileInfo in xfdesktop_file_icon_manager_drag_drop().
Jannis Pohlmann
noreply at xfce.org
Tue Oct 19 13:22:01 CEST 2010
Updating branch refs/heads/jannis/port-to-gio
to 291027b4e2fe77abd0ddd457992b9ae5eff6777c (commit)
from 42dc967e54ea3c60830ac2ebf5ab49d23d1aed4b (commit)
commit 291027b4e2fe77abd0ddd457992b9ae5eff6777c
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Tue Oct 19 13:20:58 2010 +0200
Use a GFileInfo in xfdesktop_file_icon_manager_drag_drop().
src/xfdesktop-file-icon-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index e9be5ca..2e564c9 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -3131,8 +3131,8 @@ xfdesktop_file_icon_manager_drag_drop(XfdesktopIconViewManager *manager,
if(drop_icon) {
/* don't allow a drop on an icon that isn't a folder (i.e., not
* on an icon that's an executable */
- const ThunarVfsInfo *info = xfdesktop_file_icon_peek_info(XFDESKTOP_FILE_ICON(drop_icon));
- if(!info || !(info->type & THUNAR_VFS_FILE_TYPE_DIRECTORY))
+ GFileInfo *info = xfdesktop_file_icon_peek_file_info(XFDESKTOP_FILE_ICON(drop_icon));
+ if(!info || g_file_info_get_file_type(info) != G_FILE_TYPE_DIRECTORY)
return FALSE;
}
}
More information about the Xfce4-commits
mailing list