Method

GtkClipboardrequest_targets

since: 2.4

Declaration [src]

void
gtk_clipboard_request_targets (
  GtkClipboard* clipboard,
  GtkClipboardTargetsReceivedFunc callback,
  gpointer user_data
)

Description [src]

Requests the contents of the clipboard as list of supported targets. When the list is later received, callback will be called.

The targets parameter to callback will contain the resulting targets if the request succeeded, or NULL if it failed.

Available since: 2.4

Parameters

callback

Type: GtkClipboardTargetsReceivedFunc

A function to call when the targets are received, or the retrieval fails. (It will always be called one way or the other.).

user_data

Type: gpointer

User data to pass to callback.

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