Function
GtkTextBufferDeserializeFunc
Declaration
gboolean
(*GtkTextBufferDeserializeFunc)(
GtkTextBuffer*register_buffer,
GtkTextBuffer*content_buffer,
GtkTextIter*iter,
constguint8*data,
gsizelength,
gbooleancreate_tags,
gpointeruser_data,
GError**error
)
Description [src]
A function that is called to deserialize rich text that has been
serialized with gtk_text_buffer_serialize(), and insert it at iter.
Parameters
register_buffer-
Type:
GtkTextBufferThe
GtkTextBufferthe format is registered with.The data is owned by the caller of the function. content_buffer-
Type:
GtkTextBufferThe
GtkTextBufferto deserialize into.The data is owned by the caller of the function. iter-
Type:
GtkTextIterInsertion point for the deserialized text.
The data is owned by the caller of the function. data-
Type: An array of
guint8Data to deserialize.
The length of the array is specified in thelengthargument.The data is owned by the caller of the function. length-
Type:
gsizeLength of
data. create_tags-
Type:
gbooleanTRUEif deserializing may create tags. user_data-
Type:
gpointerUser data that was specified when registering the format.
The argument can beNULL.The data is owned by the caller of the function. error-
Type:
The return location for a recoverable error.
The argument can beNULL.If the return location is notNULL, then you must initialize it to aNULLGError*.The argument will be left initialized toNULLby the function if there are no errors.In case of error, the argument will be set to a newly allocatedGError; the caller will take ownership of the data, and be responsible for freeing it.
Return value
Type: gboolean
TRUE on success, FALSE otherwise.