Method

GtkSelectionDataset

Declaration [src]

void
gtk_selection_data_set (
  GtkSelectionData* selection_data,
  GdkAtom type,
  gint format,
  const guchar* data,
  gint length
)

Description [src]

Stores new data into a GtkSelectionData object. Should only be called from a selection handler callback. Zero-terminates the stored data.

Parameters

type

Type: GdkAtom

The type of selection data.

format

Type: gint

Format (number of bits in a unit).

data

Type: An array of guchar

Pointer to the data (will be copied).

The length of the array is specified in the length argument.
The data is owned by the caller of the method.
length

Type: gint

Length of the data.