Method

GtkTextBufferregister_deserialize_format

since: 2.10

Declaration [src]

GdkAtom
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

Parameters

mime_type

Type: const gchar*

The format’s mime-type.

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

Type: GtkTextBufferDeserializeFunc

The deserialize function to register.

user_data

Type: gpointer

function’s user_data.

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

Type: GDestroyNotify

A function to call when user_data is no longer needed.

Return value

Type: GdkAtom

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