TextBuffer.registerDeserializeFormat

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

class TextBuffer
registerDeserializeFormat

Parameters

mimeType string

the format’s mime-type

function_ GtkTextBufferDeserializeFunc

the deserialize function to register

userData void*

@function’s user_data

userDataDestroy 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.

Meta

Since

2.10