TextBuffer.registerSerializeFormat

gdk.atom.Atom registerSerializeFormat(string mimeType, gtk.types.TextBufferSerializeFunc function_)

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

Parameters

mimeTypethe format’s mime-type
function_the serialize function to register

Returns

the #GdkAtom that corresponds to the

newly registered format’s mime-type.