Method
GtkTextBufferregister_serialize_format
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 |
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 |
GtkTextBufferSerializeFunc |
The serialize function to register. |
|
user_data |
gpointer |
|
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
user_data_destroy |
GDestroyNotify |
A function to call when |
Return value
Returns: | GdkAtom |
The |