[Sugar-devel] Need Help with Drag and Drop in Gtk.Drawingarea

Yash Agarwal agrwal.ysh94 at gmail.com
Thu Jun 16 07:49:00 EDT 2016


Hello,
I am trying to make an editable outline for a font (something like this
<https://github.com/sugarlabs/edit-fonts-activity/blob/gh-pages/files/img/wireframe_concept_01_first_prototype.svg>)
so I need to drag and drop points in a Gtk.Drawing area.
My idea:
when the user clicks on the drawing area:
   if the click was in any of the points
   mark the point and move it with the mouse until mouse key is still
pressed

If you have any better ideas please do tell :)

with regards,
Yash Agarwal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20160616/547c84d4/attachment.html>


More information about the Sugar-devel mailing list