GNOME Bugzilla – Bug 652842
Add a Drop action
Last modified: 2011-06-20 14:40:45 UTC
We have ClutterDragAction, so it makes sense to have its "sister" ClutterDropAction to allow an actor to control what happens when a dragged actor is dropped on it. A ClutterDropAction would also map to Mx's Droppable interface, like the ClutterDragAction maps to the Draggable interface.
Created attachment 190128 [details] [review] drag-action: Use the dragged actor private API Use the newly added private API on ClutterStage to track the currently dragged actor.
Created attachment 190129 [details] [review] drag-action: Remove the drag handle on destruction When the drag handle actor is destroyed we should unset the field inside the DragAction, to avoid having stale pointers lying around.
Created attachment 190130 [details] [review] Add ClutterDropAction ClutterDropAction is an Action sub-class that allows writing actors that react to dragged actors being dropped on them.
Created attachment 190131 [details] [review] docs: Document ClutterDropAction And add it to the API reference.
Created attachment 190132 [details] [review] stage: Allow tracking dragged actors We should be able to internally attach the actor currently being dragged to the device that is dragging it.
Created attachment 190133 [details] [review] drag-action: Use the dragged actor private API Use the newly added private API on ClutterStage to track the currently dragged actor.
Created attachment 190134 [details] [review] drag-action: Remove the drag handle on destruction When the drag handle actor is destroyed we should unset the field inside the DragAction, to avoid having stale pointers lying around.
Created attachment 190135 [details] [review] Add ClutterDropAction ClutterDropAction is an Action sub-class that allows writing actors that react to dragged actors being dropped on them.
Created attachment 190136 [details] [review] docs: Document ClutterDropAction And add it to the API reference.
Created attachment 190141 [details] [review] drop-action: Add event coordinates to ::can-drop and ::drop It is useful to know where the drop has happened from the signal handlers of ClutterDropAction.
Created attachment 190275 [details] [review] stage: Allow tracking dragged actors We should be able to internally attach the actor currently being dragged to the device that is dragging it.
Created attachment 190276 [details] [review] drag-action: Use the dragged actor private API Use the newly added private API on ClutterStage to track the currently dragged actor.
Created attachment 190277 [details] [review] drag-action: Remove the drag handle on destruction When the drag handle actor is destroyed we should unset the field inside the DragAction, to avoid having stale pointers lying around.
Created attachment 190278 [details] [review] Add ClutterDropAction ClutterDropAction is an Action sub-class that allows writing actors that react to dragged actors being dropped on them.
Created attachment 190279 [details] [review] docs: Document ClutterDropAction And add it to the API reference.
Attachment 190275 [details] pushed as 530a13f - stage: Allow tracking dragged actors Attachment 190276 [details] pushed as 0dea846 - drag-action: Use the dragged actor private API Attachment 190277 [details] pushed as a6a57d7 - drag-action: Remove the drag handle on destruction Attachment 190278 [details] pushed as 1238e0d - Add ClutterDropAction Attachment 190279 [details] pushed as e5641da - docs: Document ClutterDropAction