Declaration [src]

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.


type GdkAtom

The type of selection data.

format gint

Format (number of bits in a unit)

data 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 function.
length gint

Length of the data.