Function

Gtkselection_owner_set

Declaration [src]

gboolean
gtk_selection_owner_set (
  GtkWidget* widget,
  GdkAtom selection,
  guint32 time_
)

Description [src]

Claims ownership of a given selection for a particular widget, or, if widget is NULL, release ownership of the selection.

Parameters

widget

Type: GtkWidget

A GtkWidget, or NULL.

The argument can be NULL.
The data is owned by the caller of the function.
selection

Type: GdkAtom

An interned atom representing the selection to claim.

time_

Type: guint32

Timestamp with which to claim the selection.

Return value

Type: gboolean

TRUE if the operation succeeded.