[Top]
GTK
GTK.Widget
|
Method GTK.Widget()->drag_source_set()
- Method
drag_source_set
GTK.Widget drag_source_set(int flags, array targets, int actions)
- Description
Register a drop site, and possibly add default behaviors.
arguments:
buttons: Which mouse buttons can be used to start the drag
targets: Table of targets that can be accepted
({ ({ content_type(string), flags(int(try 0)), id(int) }), ...})
The id will be received in the signal handlers.
actions: one of GDK_ACTION_ASK , GDK_ACTION_COPY , GDK_ACTION_DEFAULT , GDK_ACTION_LINK , GDK_ACTION_MOVE and GDK_ACTION_PRIVATE
results:
|