[Xfce4-commits] <xfdesktop:master> Use a GFileInfo in xfdesktop_file_icon_manager_drag_drop().

Jannis Pohlmann noreply at xfce.org
Tue Nov 2 01:14:15 CET 2010


Updating branch refs/heads/master
         to 357e747c045ea07d6b5b14d9c3dfea58841cf62a (commit)
       from 66a95017bf982339d4c4dcf0dbe972a5e436a9c4 (commit)

commit 357e747c045ea07d6b5b14d9c3dfea58841cf62a
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