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_ gtk.types.TextBufferSerializeFunc

the serialize function to register

Return Value

Type: gdk.atom.Atom

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