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 GtkTextBuffer
 

The GtkTextBuffer the format is registered with.

 The data is owned by the caller of the function.
content_buffer GtkTextBuffer
 

The GtkTextBuffer to deserialize into.

 The data is owned by the caller of the function.
iter GtkTextIter
 

Insertion point for the deserialized text.

 The data is owned by the caller of the function.
data const guint8*
 

The data to deserialize.

 The data is owned by the caller of the function.
length gsize
 

The length of data.

create_tags gboolean
 

TRUE if deserializing may create tags.

user_data gpointer
 

User data that was specified when registering the format.

 The argument can be NULL.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success, or FALSE on error with error set.