Gtk.SelectionData.prototype.set_pixbuf

function set_pixbuf(pixbuf:GdkPixbuf.Pixbuf):Boolean {
    // Gjs wrapper for gtk_selection_data_set_pixbuf()
}

Sets the contents of the selection from a GdkPixbuf.Pixbuf The pixbuf is converted to the form determined by selection_data->target.

Since 2.6

pixbuf

a GdkPixbuf.Pixbuf

Returns

true if the selection was successfully set, otherwise false.