Function

GtkTextBufferDeserializeFunc

Declaration

gboolean
TextBufferDeserializeFunc (
  GtkTextBuffer* register_buffer,
  GtkTextBuffer* content_buffer,
  GtkTextIter* iter,
  const guint8* data,
  gsize length,
  gboolean create_tags,
  gpointer user_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 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 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 function.
length gsize
 

Length of data.

create_tags gboolean
 

TRUE if deserializing may create tags.

user_data gpointer
 

User data that was specified when registering the format.

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

Return value

Returns: gboolean
 

TRUE on success, FALSE otherwise.