Declaration [src]

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


display GdkDisplay

The GdkDisplay where the selection is set.

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

New selection owner (a GtkWidget), or NULL.

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

An interned atom representing the selection to claim.

time_ guint32

Timestamp with which to claim the selection.

Return value

Returns: gboolean

TRUE if the operation succeeded.