<?xml version="1.0"?>
<page id="GimpUi.ResourceSelectButton.set_drag_target"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="GimpUi.ResourceSelectButton" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>void</api:type>
      </api:returns>
      <api:name>gimp_resource_select_button_set_drag_target</api:name>
      <api:arg>
        <api:type>Gtk.Widget</api:type>
        <api:name>drag_region_widget</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gtk.TargetEntry</api:type>
        <api:name>drag_target</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.ResourceSelectButton.prototype.set_drag_target</title>
  <synopsis><code mime="text/x-gjs">
function set_drag_target(drag_region_widget: <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link>, drag_target: <link href="../Gtk-3.0/Gtk.TargetEntry.html">Gtk.TargetEntry</link>): void {
    // Gjs wrapper for gimp_resource_select_button_set_drag_target()
}
  </code></synopsis>
  <p>Called by a subclass init to specialize the instance.</p>  <p>Subclass knows its interior widget whose region is a drop zone.
Subclass knows what things can be dropped (target.)
Self (super) handles the drop.</p>
  <p>Since 3.0</p>
<terms>
<item>
<title><code>drag_region_widget</code></title>
  <p>An interior widget to be a droppable region
                     and emit "drag-data-received" signal</p>
</item>
<item>
<title><code>drag_target</code></title>
  <p>The drag target to accept</p>
</item>
</terms>

</page>
