Method
GtkTextBufferdeserialize
since: 2.10
Declaration [src]
gboolean
gtk_text_buffer_deserialize (
GtkTextBuffer* register_buffer,
GtkTextBuffer* content_buffer,
GdkAtom format,
GtkTextIter* iter,
const guint8* data,
gsize length,
GError** error
)
Description [src]
This function deserializes rich text in format format
and inserts
it at iter
.
formats
to be used must be registered using
gtk_text_buffer_register_deserialize_format()
or
gtk_text_buffer_register_deserialize_tagset()
beforehand.
Available since: 2.10
Parameters
content_buffer
-
Type:
GtkTextBuffer
The
GtkTextBuffer
to deserialize into.The data is owned by the caller of the method. format
-
Type:
GdkAtom
The rich text format to use for deserializing.
iter
-
Type:
GtkTextIter
Insertion point for the deserialized text.
The data is owned by the caller of the method. data
-
Type: An array of
guint8
Data to deserialize.
The length of the array is specified in the length
argument.The data is owned by the caller of the method. length
-
Type:
gsize
Length of
data
. error
-
Type:
GError **
The return location for a recoverable error.
The argument can be NULL
.If the return location is not NULL
, then you must initialize it to aNULL
GError*
.The argument will be left initialized to NULL
by the method if there are no errors.In case of error, the argument will be set to a newly allocated GError
; the caller will take ownership of the data, and be responsible for freeing it.