Package: gtk

Function gtk-clipboard-request-image

Lambda List

gtk-clipboard-request-image (clipboard func)

Arguments

clipboard -- a gtk-clipboard object
func -- a gtk-clipboard-image-receibed-func callback function to call when the image is received, or the retrieval fails. It will always be called one way or the other.

Details

Requests the contents of the clipboard as image. When the image is later received, it will be converted to a gdk-pixbuf object, and the callback function will be called.

The pixbuf parameter to the callback function will contain the resulting gdk-pixbuf object if the request succeeded, or nil if it failed. This could happen for various reasons, in particular if the clipboard was empty or if the contents of the clipboard could not be converted into an image.
 

See also

2021-10-6