[PATCH] Accept color/background drops over icons



Bug 47536:
"Dragged colors and backgrounds won't be accepted by the icon view if
they are dropped on an icon"

Proposed patch attached.

-- 
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-icon-dnd.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-icon-dnd.c,v
retrieving revision 1.148
diff -u -p -r1.148 nautilus-icon-dnd.c
--- libnautilus-private/nautilus-icon-dnd.c	13 Jul 2005 08:17:29 -0000	1.148
+++ libnautilus-private/nautilus-icon-dnd.c	28 Aug 2005 13:54:19 -0000
@@ -1128,20 +1132,14 @@ nautilus_icon_container_get_drop_action 
 			*action = context->suggested_action;
 		}
 		break;
-	
-	/* handle colors and backgrounds by setting the action if we're over the background */		
-	case NAUTILUS_ICON_DND_COLOR:
-	case NAUTILUS_ICON_DND_BGIMAGE:
-	case NAUTILUS_ICON_DND_RESET_BACKGROUND:
-		if (icon == NULL) {
-			*action = context->suggested_action;
-		}	
-		break;
-	
+
 	case NAUTILUS_ICON_DND_URL:
 		*action = nautilus_drag_default_drop_action_for_url (context);
 		break;
-		
+
+	case NAUTILUS_ICON_DND_COLOR:
+	case NAUTILUS_ICON_DND_BGIMAGE:
+	case NAUTILUS_ICON_DND_RESET_BACKGROUND:
 	case NAUTILUS_ICON_DND_URI_LIST:
 	case NAUTILUS_ICON_DND_ROOTWINDOW_DROP:
 		*action = context->suggested_action;

Attachment: signature.asc
Description: This is a digitally signed message part



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