set_selection


Description:

public void set_selection (string mime_types)

Set the clipboard selection to advertise support for the passed list of mime types.

When some entity in the windowing system requests to retrieve the contents of the selection, the [signal@Session: XdpSession:selection-transfer] signal is emitted. In response to this, the caller of this function must respond by calling [ method@Session.selection_write] with the serial number passed via the mentioned signal.

Parameters:

this

a [class@Session]

mime_types

A NULL terminated array of mime type strings.