Function
Talkatumarkup_deserialize_html
Declaration [src]
gboolean
talkatu_markup_deserialize_html (
GtkTextBuffer* register_buffer,
GtkTextBuffer* content_buffer,
GtkTextIter* iter,
const guint8* data,
gsize length,
gboolean create_tags,
gpointer user_data,
GError** error
)
Description [src]
This is a GtkTextBufferDeserializeFunc
function that will deserialize
HTML data from data
into content_buffer
. It should be registered with
with #gtk_text_buffer_register_deserializer_format in the buffer’s
instance_init function.
Parameters
register_buffer
-
Type:
GtkTextBuffer
The
GtkTextBuffer
the format is registered with.The data is owned by the caller of the function. content_buffer
-
Type:
GtkTextBuffer
The
GtkTextBuffer
to deserialize into.The data is owned by the caller of the function. iter
-
Type:
GtkTextIter
Insertion point for the deserialized text.
The data is owned by the caller of the function. data
-
Type:
const guint8*
The data to deserialize.
The data is owned by the caller of the function. length
-
Type:
gsize
The length of
data
. create_tags
-
Type:
gboolean
TRUE if deserializing may create tags.
user_data
-
Type:
gpointer
User data that was specified when registering the format.
The argument can be NULL
.The data is owned by the caller of the function. 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 left initialized to NULL
by the function 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.