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 656894 - Rotating a drag handle makes it go away from the stage
Rotating a drag handle makes it go away from the stage
Status: RESOLVED DUPLICATE of bug 653101
Product: clutter
Classification: Platform
Component: ClutterAction
git master
Other Linux
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-19 10:51 UTC by Emilio Pozuelo Monfort
Modified: 2011-08-19 12:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rotate the drag handle (691 bytes, application/octet-stream)
2011-08-19 10:52 UTC, Emilio Pozuelo Monfort
Details

Description Emilio Pozuelo Monfort 2011-08-19 10:51:47 UTC
Using ClutterDragAction, if you add a drag handle to the stage on drag-begin, it'll work nicely, but if you rotate that actor, it'll go away from the stage when you start moving the pointer.

This is reproducible in test-drag with the attached patch. Note you need to shift-drag in order to test-drag to use a drag handle.
Comment 1 Emilio Pozuelo Monfort 2011-08-19 10:52:47 UTC
Created attachment 194215 [details]
rotate the drag handle
Comment 2 Emmanuele Bassi (:ebassi) 2011-08-19 11:29:36 UTC
same as bug 653101

sadly, this means that DragAction won't work with transformed actors unless we changed the ::drag-motion default implementation.

for your particular use case, and since you already have a sub-class of Texture, I'd override the paint() virtual and paint the texture quad flipped (see cogl_rectangle_with_texture_coords() in the Cogl documentation) instead of flipping the actor itself. this way, the actor is going to behave like the scenegraph expects, at least until we figure out a way to allow incremental movement even when transformed.

*** This bug has been marked as a duplicate of bug 653101 ***
Comment 3 Emilio Pozuelo Monfort 2011-08-19 12:44:48 UTC
Thanks for the hint, I'm doing that and it works nicely!