Constructor

Gtk.DropTarget.new

Declaration [src]

GtkDropTarget*
gtk_drop_target_new (
  GType type,
  GdkDragAction actions
)

Description [src]

Creates a new GtkDropTarget object.

If the drop target should support more than 1 type, pass G_TYPE_INVALID for type and then call gtk_drop_target_set_gtypes().

Parameters

type GType
 

The supported type or G_TYPE_INVALID

actions GdkDragAction
 

the supported actions

Return value

Returns: GtkDropTarget

the new GtkDropTarget

Ownership of the data is transferred to the caller