generate_preview


Description:

[ Version ( since = "3.52" ) ]
public virtual string? generate_preview (GeneratePreviewFunc? func)

Generates preview of the this, to be used in the interface, read by the users.

The optional func can be used to override default preview generation function. If provided, it's always called as the first try on the parts.

Parameters:

this

a Multipart

func

an optional GeneratePreviewFunc function, or null

user_data

user data for the func, or null

Returns:

part's preview as a new string, or null, when cannot be generated. Free with g_free, when no longer needed.