util_get_image_finish


Description:


public Texture? util_get_image_finish (Client client, AsyncResult result) throws Error

Finish a get_image call as a ready-to-display texture.

The core client stays toolkit-free and hands image items over as bytes; this is the GTK-side conversion for its consumers.

It can fail on either half: fetching the item carries the Client domains ( g_paste_error, g_dbus_error, g_io_error ), while decoding bytes GDK cannot make a texture out of yields gdk_texture_error.

Parameters:

client

the Client the get_image call was made on

result

the AsyncResult handed to the callback

Returns:

the image as a newly allocated Texture


Namespace: GPasteGtk
Package: gpaste-gtk4