TextBuffer.registerSerializeFormat

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

class TextBuffer
registerSerializeFormat

Parameters

mimeType string

the format’s mime-type

function_ GtkTextBufferSerializeFunc

the serialize 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 gdk.Atom that corresponds to the newly registered format’s mime-type.

Meta

Since

2.10