After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652842 - Add a Drop action
Add a Drop action
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: ClutterAction
unspecified
Other All
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-06-17 16:40 UTC by Emmanuele Bassi (:ebassi)
Modified: 2011-06-20 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
drag-action: Use the dragged actor private API (1.64 KB, patch)
2011-06-17 16:40 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
drag-action: Remove the drag handle on destruction (2.41 KB, patch)
2011-06-17 16:40 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
Add ClutterDropAction (21.71 KB, patch)
2011-06-17 16:40 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
docs: Document ClutterDropAction (9.30 KB, patch)
2011-06-17 16:40 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
stage: Allow tracking dragged actors (3.38 KB, patch)
2011-06-17 16:41 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
drag-action: Use the dragged actor private API (1.64 KB, patch)
2011-06-17 16:41 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
drag-action: Remove the drag handle on destruction (2.41 KB, patch)
2011-06-17 16:41 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
Add ClutterDropAction (21.71 KB, patch)
2011-06-17 16:41 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
docs: Document ClutterDropAction (9.30 KB, patch)
2011-06-17 16:42 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
drop-action: Add event coordinates to ::can-drop and ::drop (5.15 KB, patch)
2011-06-17 17:22 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
stage: Allow tracking dragged actors (3.38 KB, patch)
2011-06-20 14:36 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review
drag-action: Use the dragged actor private API (1.63 KB, patch)
2011-06-20 14:37 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review
drag-action: Remove the drag handle on destruction (2.41 KB, patch)
2011-06-20 14:37 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review
Add ClutterDropAction (24.60 KB, patch)
2011-06-20 14:37 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review
docs: Document ClutterDropAction (9.29 KB, patch)
2011-06-20 14:37 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review

Description Emmanuele Bassi (:ebassi) 2011-06-17 16:40:48 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.
Comment 1 Emmanuele Bassi (:ebassi) 2011-06-17 16:40:51 UTC
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.
Comment 2 Emmanuele Bassi (:ebassi) 2011-06-17 16:40:53 UTC
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.
Comment 3 Emmanuele Bassi (:ebassi) 2011-06-17 16:40:56 UTC
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.
Comment 4 Emmanuele Bassi (:ebassi) 2011-06-17 16:40:59 UTC
Created attachment 190131 [details] [review]
docs: Document ClutterDropAction

And add it to the API reference.
Comment 5 Emmanuele Bassi (:ebassi) 2011-06-17 16:41:49 UTC
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.
Comment 6 Emmanuele Bassi (:ebassi) 2011-06-17 16:41:52 UTC
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.
Comment 7 Emmanuele Bassi (:ebassi) 2011-06-17 16:41:54 UTC
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.
Comment 8 Emmanuele Bassi (:ebassi) 2011-06-17 16:41:57 UTC
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.
Comment 9 Emmanuele Bassi (:ebassi) 2011-06-17 16:42:00 UTC
Created attachment 190136 [details] [review]
docs: Document ClutterDropAction

And add it to the API reference.
Comment 10 Emmanuele Bassi (:ebassi) 2011-06-17 17:22:35 UTC
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.
Comment 11 Emmanuele Bassi (:ebassi) 2011-06-20 14:36:59 UTC
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.
Comment 12 Emmanuele Bassi (:ebassi) 2011-06-20 14:37:13 UTC
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.
Comment 13 Emmanuele Bassi (:ebassi) 2011-06-20 14:37:20 UTC
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.
Comment 14 Emmanuele Bassi (:ebassi) 2011-06-20 14:37:36 UTC
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.
Comment 15 Emmanuele Bassi (:ebassi) 2011-06-20 14:37:42 UTC
Created attachment 190279 [details] [review]
docs: Document ClutterDropAction

And add it to the API reference.
Comment 16 Emmanuele Bassi (:ebassi) 2011-06-20 14:40:31 UTC
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