Appends a specified target to the list of supported targets for a given widget and selection.
Prepends a table of targets to the list of supported targets for a given widget and selection.
Warning gtk_selection_clear has been deprecated since version 2.4 and should not be used in newly-written code. Instead of calling this function, chain up from your selection-clear-event handler. Calling this function from any other context is illegal. The default handler for the "selection-clear-event" signal. Since 2.2
Remove all targets registered for the given selection for the widget.
Requests the contents of a selection. When received, a "selection-received" signal will be generated.
Makes a copy of a GtkSelectionData structure and its data.
Frees a GtkSelectionData structure returned from gtk_selection_data_copy().
Retrieves the raw data of the selection. Since 2.14
Retrieves the data type of the selection. Since 2.14
Retrieves the display of the selection. Since 2.14
Retrieves the format of the selection. Since 2.14
Retrieves the length of the raw data of the selection. Since 2.14
Gets the contents of the selection data as a GdkPixbuf. Since 2.6
Retrieves the selection GdkAtom of the selection data. Since 2.16
Retrieves the target of the selection. Since 2.14
Gets the contents of selection_data as an array of targets. This can be used to interpret the results of getting the standard TARGETS target that is always supplied for any selection.
Gets the contents of the selection data as a UTF-8 string.
Gets the contents of the selection data as array of URIs. Since 2.6
Stores new data into a GtkSelectionData object. Should only be called from a selection handler callback. Zero-terminates the stored data.
Sets the contents of the selection from a GdkPixbuf The pixbuf is converted to the form determined by selection_data->target. Since 2.6
Sets the contents of the selection from a UTF-8 encoded string. The string is converted to the form determined by selection_data->target.
Sets the contents of the selection from a list of URIs. The string is converted to the form determined by selection_data->target. Since 2.6
Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide a GdkPixbuf. Since 2.6
Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide rich text. Since 2.10
Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide text.
Given a GtkSelectionData object holding a list of targets, determines if any of the targets in targets can be used to provide a list or URIs. Since 2.10
Claims ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.
Claim ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection. Since 2.2
Removes all handlers and unsets ownership of all selections for a widget. Called when widget is being destroyed. This function will not generally be called by applications.
Description The selection mechanism provides the basis for different types of communication between processes. In particular, drag and drop and GtkClipboard work via selections. You will very seldom or never need to use most of the functions in this section directly; GtkClipboard provides a nicer interface to the same functionality. Some of the datatypes defined this section are used in the GtkClipboard and drag-and-drop API's as well. The GtkTargetEntry structure and GtkTargetList objects represent lists of data types that are supported when sending or receiving data. The GtkSelectionData object is used to store a chunk of data along with the data type and other associated information.