Method
GtkClipboardset_with_owner
Declaration [src]
gboolean
gtk_clipboard_set_with_owner (
GtkClipboard* clipboard,
const GtkTargetEntry* targets,
guint n_targets,
GtkClipboardGetFunc get_func,
GtkClipboardClearFunc clear_func,
GObject* owner
)
Description [src]
Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested.
The difference between this function and gtk_clipboard_set_with_data()
is that instead of an generic user_data pointer, a GObject is passed in.
This method is not directly available to language bindings.
Parameters
targets-
Type: An array of
GtkTargetEntryArray containing information about the available forms for the clipboard data.
The length of the array is specified in the n_targetsargument.The data is owned by the caller of the method. n_targets-
Type:
guintNumber of elements in
targets. get_func-
Type:
GtkClipboardGetFuncFunction to call to get the actual clipboard data.
clear_func-
Type:
GtkClipboardClearFuncWhen the clipboard contents are set again, this function will be called, and
get_funcwill not be subsequently called. owner-
Type:
GObjectAn object that “owns” the data. This object will be passed to the callbacks when called.
The data is owned by the caller of the method.