Declaration [src]

gtk_text_buffer_register_deserialize_format (
  GtkTextBuffer* buffer,
  const gchar* mime_type,
  GtkTextBufferDeserializeFunc function,
  gpointer user_data,
  GDestroyNotify user_data_destroy

Description [src]

This function registers a rich text deserialization function along with its mime_type with the passed buffer.

Available since:2.10


mime_type const gchar*

The format’s mime-type.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
function GtkTextBufferDeserializeFunc

The deserialize function to register.

user_data gpointer

function’s user_data.

 The argument can be NULL.
 The data is owned by the caller of the function.
user_data_destroy GDestroyNotify

A function to call when user_data is no longer needed.

Return value

Returns: GdkAtom

The GdkAtom that corresponds to the newly registered format’s mime-type.