GimpUi.ResourceChooser.set_drag_target

@accepts(GimpUi.ResourceChooser, Gtk.Widget, Gtk.TargetEntry)
@returns(none)
def set_drag_target(self, drag_region_widget, drag_target):
    # Python wrapper for gimp_resource_chooser_set_drag_target()
  

Called by a subclass init to specialize the instance.

Subclass knows its interior widget whose region is a drop zone. Subclass knows what things can be dropped (target.) Self (super) handles the drop.

Since 3.0

self

A [class@ResourceChooser]

drag_region_widget

An interior widget to be a droppable region and emit "drag-data-received" signal

drag_target

The drag target to accept