Function

GtkClipboardget

Declaration [src]

GtkClipboard*
gtk_clipboard_get (
  GdkAtom selection
)

Description [src]

Returns the clipboard object for the given selection. See gtk_clipboard_get_for_display() for complete details.

Parameters

selection

Type: GdkAtom

A GdkAtom which identifies the clipboard to use.

Return value

Type: GtkClipboard

The appropriate clipboard object. If no clipboard already exists, a new one will be created. Once a clipboard object has been created, it is persistent and, since it is owned by GTK+, must not be freed or unreffed.

The data is owned by the called function.