Commit 12487f12 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Handle background color/image drops even on icons. (#47536) Patch from

2005-08-29  Alexander Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-icon-dnd.c:
	(nautilus_icon_container_get_drop_action):
	Handle background color/image drops even on
	icons. (#47536)
	Patch from Christian Neumair  <chris@gnome-de.org>
parent 30a45b36
2005-08-29 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-icon-dnd.c:
(nautilus_icon_container_get_drop_action):
Handle background color/image drops even on
icons. (#47536)
Patch from Christian Neumair <chris@gnome-de.org>
2005-08-29 Alexander Larsson <alexl@redhat.com>
* src/file-manager/fm-directory-view.c:
......
......@@ -1128,20 +1128,14 @@ nautilus_icon_container_get_drop_action (NautilusIconContainer *container,
*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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment