Gtk.Clipboard.prototype.wait_is_target_available

function wait_is_target_available(target:Gdk.Atom):Boolean {
    // Gjs wrapper for gtk_clipboard_wait_is_target_available()
}

Checks if a clipboard supports pasting data of a given type. This function can be used to determine if a "Paste" menu item should be insensitive or not.

If you want to see if there's text available on the clipboard, use gtk_clipboard_wait_is_text_available () instead.

Since 2.6

target

A Gdk.Atom indicating which target to look for.

Returns

true if the target is available, false otherwise.