Method

GtkClipboardwait_is_rich_text_available

since: 2.10

Declaration [src]

gboolean
gtk_clipboard_wait_is_rich_text_available (
  GtkClipboard* clipboard,
  GtkTextBuffer* buffer
)

Description [src]

Test to see if there is rich text available to be pasted This is done by requesting the TARGETS atom and checking if it contains any of the supported rich text targets. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.

This function is a little faster than calling gtk_clipboard_wait_for_rich_text() since it doesn’t need to retrieve the actual text.

Available since: 2.10

Parameters

buffer

Type: GtkTextBuffer

A GtkTextBuffer.

The data is owned by the caller of the method.

Return value

Type: gboolean

TRUE is there is rich text available, FALSE otherwise.