Method

GtkClipboardset_text

Declaration [src]

void
gtk_clipboard_set_text (
  GtkClipboard* clipboard,
  const gchar* text,
  gint len
)

Description [src]

Sets the contents of the clipboard to the given UTF-8 string. GTK+ will make a copy of the text and take responsibility for responding for requests for the text, and for converting the text into the requested format.

Parameters

text

Type: const gchar*

A UTF-8 string.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
len

Type: gint

Length of text, in bytes, or -1, in which case the length will be determined with strlen().