Function

GtkClipboardGetFunc

Declaration

void
(* GtkClipboardGetFunc) (
  GtkClipboard* clipboard,
  GtkSelectionData* selection_data,
  guint info,
  gpointer user_data_or_owner
)

Description [src]

A function that will be called to provide the contents of the selection. If multiple types of data were advertised, the requested type can be determined from the info parameter or by checking the target field of selection_data. If the data could successfully be converted into then it should be stored into the selection_data object by calling gtk_selection_data_set() (or related functions such as gtk_selection_data_set_text()). If no data is set, the requestor will be informed that the attempt to get the data failed.

Parameters

clipboard

Type: GtkClipboard

The GtkClipboard.

The data is owned by the caller of the function.
selection_data

Type: GtkSelectionData

A GtkSelectionData argument in which the requested data should be stored.

The data is owned by the caller of the function.
info

Type: guint

The info field corresponding to the requested target from the GtkTargetEntry array passed to gtk_clipboard_set_with_data() or gtk_clipboard_set_with_owner().

user_data_or_owner

Type: gpointer

The user_data argument passed to gtk_clipboard_set_with_data(), or the owner argument passed to gtk_clipboard_set_with_owner()

The argument can be NULL.
The data is owned by the caller of the function.