Function

Gtkselection_owner_set_for_display

since: 2.2

Declaration [src]

gboolean
gtk_selection_owner_set_for_display (
  GdkDisplay* display,
  GtkWidget* widget,
  GdkAtom selection,
  guint32 time_
)

Description [src]

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

Available since: 2.2

Parameters

display

Type: GdkDisplay

The GdkDisplay where the selection is set.

The data is owned by the caller of the function.
widget

Type: GtkWidget

New selection owner (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.