Drag and Drop Functions for controlling drag and drop handling GTK+ has a rich set of functions for doing inter-process communication via the drag-and-drop metaphor. GTK+ can do drag-and-drop (DND) via multiple protocols. The currently supported protocols are the Xdnd and Motif protocols. As well as the functions listed here, applications may need to use some facilities provided for Selections. Also, the Drag and Drop API makes use of signals in the #GtkWidget class. The #GtkDestDefaults enumeration specifies the various types of action that will be taken on behalf of the user for a drag destination site. @GTK_DEST_DEFAULT_MOTION: If set for a widget, GTK+, during a drag over this widget will check if the drag matches this widget's list of possible targets and actions. GTK+ will then call gdk_drag_status() as appropriate. @GTK_DEST_DEFAULT_HIGHLIGHT: If set for a widget, GTK+ will draw a highlight on this widget as long as a drag is over this widget and the widget drag format and action are acceptable. @GTK_DEST_DEFAULT_DROP: If set for a widget, when a drop occurs, GTK+ will will check if the drag matches this widget's list of possible targets and actions. If so, GTK+ will call gtk_drag_get_data() on behalf of the widget. Whether or not the drop is successful, GTK+ will call gtk_drag_finish(). If the action was a move, then if the drag was successful, then %TRUE will be passed for the @delete parameter to gtk_drag_finish(). @GTK_DEST_DEFAULT_ALL: If set, specifies that all default actions should be taken. The #GtkTargetFlags enumeration is used to specify constraints on an entry in a #GtkTargetTable. @GTK_TARGET_SAME_APP: If this is set, the target will only be selected for drags within a single application. @GTK_TARGET_SAME_WIDGET: If this is set, the target will only be selected for drags within a single widget. @GTK_TARGET_OTHER_APP: If this is set, the target will not be selected for drags within a single application. Since 2.12 @GTK_TARGET_OTHER_WIDGET: If this is set, the target will not be selected for drags withing a single widget. Since 2.12 @widget: @flags: @targets: @n_targets: @actions: Sets this widget as a proxy for drops to another window. @widget: a #GtkWidget @proxy_window: the window to which to forward drag events @protocol: the drag protocol which the @proxy_window accepts (You can use gdk_drag_get_protocol() to determine this) @use_coordinates: If %TRUE, send the same coordinates to the destination, because it is an embedded subwindow. Clears information about a drop destination set with gtk_drag_dest_set(). The widget will no longer receive notification of drags. @widget: a #GtkWidget @widget: @context: @target_list: @Returns: @widget: @Returns: @widget: @target_list: @widget: @widget: @widget: @widget: @track_motion: @widget: @Returns: Informs the drag source that the drop is finished, and that the data of the drag will no longer be required. @context: the drag context. @success: a flag indicating whether the drop was successful @del: a flag indicating whether the source should delete the original data. (This should be %TRUE for a move) @time_: the timestamp from the "drag_data_drop" signal. Gets the data associated with a drag. When the data is received or the retrieval fails, GTK+ will emit a "drag_data_received" signal. Failure of the retrieval is indicated by the length field of the @selection_data signal parameter being negative. However, when gtk_drag_get_data() is called implicitely because the %GTK_DEST_DEFAULT_DROP was set, then the widget will not receive notification of failed drops. @widget: the widget that will receive the "drag_data_received" signal. @context: the drag context @target: the target (form of the data) to retrieve. @time_: a timestamp for retrieving the data. This will generally be the time received in a "drag_data_motion" or "drag_data_drop" signal. Determines the source widget for a drag. @context: a (destination side) drag context. @Returns: if the drag is occurring within a single application, a pointer to the source widget. Otherwise, %NULL. Draws a highlight around a widget. This will attach handlers to "expose_event" and "draw", so the highlight will continue to be displayed until gtk_drag_unhighlight() is called. @widget: a widget to highlight Removes a highlight set by gtk_drag_highlight() from a widget. @widget: a widget to remove the highlight from. @widget: @targets: @actions: @button: @event: @Returns: @context: @widget: @hot_x: @hot_y: @context: @colormap: @pixmap: @mask: @hot_x: @hot_y: @context: @pixbuf: @hot_x: @hot_y: @context: @stock_id: @hot_x: @hot_y: @context: @icon_name: @hot_x: @hot_y: @context: @widget: @start_x: @start_y: @current_x: @current_y: @Returns: @widget: @start_button_mask: @targets: @n_targets: @actions: @widget: @colormap: @pixmap: @mask: @widget: @pixbuf: @widget: @stock_id: @widget: @icon_name: Undoes the effects of gtk_drag_source_set(). @widget: a #GtkWidget @widget: @target_list: @widget: @Returns: @widget: @widget: @widget: