Texture.newForPixbuf
gdk.texture.Texture newForPixbuf(gdkpixbuf.pixbuf.Pixbuf pixbuf)Creates a new texture object representing the gdkpixbuf.pixbuf.Pixbuf.
This function is threadsafe, so that you can e.g. use GTask and gio.task.Task.runInThread to avoid blocking the main thread while loading a big image.
Parameters
pixbuf | a gdkpixbuf.pixbuf.Pixbuf |
Returns
a new gdk.texture.Texture