[PATCH] drag and drop



Hi,

The patch is made with the cvs version but i tested it (and works) with
an older nautilus version because of i cannot compile cvs nautilus with
ubuntu edgy beta.

Close Nautilus part of the bug 

Bug URL 
http://bugzilla.gnome.org/show_bug.cgi?id=127553

Sorry for cannot test it with cvs nautilus
Index: fm-directory-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-directory-view.c,v
retrieving revision 1.750
diff -u -r1.750 fm-directory-view.c
--- fm-directory-view.c	8 Aug 2006 14:43:25 -0000	1.750
+++ fm-directory-view.c	18 Oct 2006 18:45:44 -0000
@@ -9710,15 +9710,12 @@
 		    GNOME_VFS_FILE_INFO_GET_MIME_TYPE
 		    | GNOME_VFS_FILE_INFO_FOLLOW_LINKS);
 
-		if ( eel_strcasecmp (file_info->mime_type, "text/html") == 0 ||
-		    eel_strcasecmp (file_info->mime_type, "text/xml") == 0 ||
-		    eel_strcasecmp (file_info->mime_type, "application/xhtml+xml") == 0) {
-			action = GDK_ACTION_LINK;
-		} else if (eel_strcasecmp (file_info->mime_type, "text/plain") == 0) {
-			action = ask_link_action (view);
+		if (eel_istr_has_prefix (url, "http:")) {
+		    action = ask_link_action (view);
 		} else {
-			action = GDK_ACTION_COPY;
+		    action = GDK_ACTION_COPY;
 		}
+		
 		gnome_vfs_file_info_unref (file_info);
 		
 		if (action == 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]