Method
GtkTextBufferregister_serialize_format
since: 2.10
Declaration [src]
GdkAtom
gtk_text_buffer_register_serialize_format (
GtkTextBuffer* buffer,
const gchar* mime_type,
GtkTextBufferSerializeFunc function,
gpointer user_data,
GDestroyNotify user_data_destroy
)
Description [src]
This function registers a rich text serialization 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:
GtkTextBufferSerializeFunc
The serialize 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.