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

the deserialize function to register

Return Value

Type: gdk.atom.Atom

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