5.1 GdkPixbufDestroyNotify

Callback: GdkPixbufDestroyNotify

A procedure given for it is called as (procedure pixels).

A function of this type is responsible for freeing the pixel array of a pixbuf.

The pixbuf:new-from-data function lets you pass in a pre-allocated pixel array so that a pixbuf can be created from it; in this case you will need to pass in a function of type GdkPixbufDestroyNotify so that the pixel data can be freed when the pixbuf is finalized.

pixels

Passed: a foreign pointer.

The pixel array of the pixbuf that is being finalized.

data

Not passed: it is the user data that guile-gi supplied.

User closure data.