Function

Gdkselection_owner_set_for_display

Declaration [src]

gboolean
gdk_selection_owner_set_for_display (
  GdkDisplay* display,
  GdkWindow* owner,
  GdkAtom selection,
  guint32 time_,
  gboolean send_event
)

Description [src]

Sets the GdkWindow owner as the current owner of the selection selection.

Available since:2.2

Parameters

display GdkDisplay
 

The GdkDisplay.

 The data is owned by the caller of the function.
owner GdkWindow
 

A GdkWindow or NULL to indicate that the owner for the given should be unset.

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

An atom identifying a selection.

time_ guint32
 

Timestamp to use when setting the selection If this is older than the timestamp given last time the owner was set for the given selection, the request will be ignored.

send_event gboolean
 

If TRUE, and the new owner is different from the current owner, the current owner will be sent a SelectionClear event.

Return value

Returns: gboolean
 

TRUE if the selection owner was successfully changed to owner, otherwise FALSE.