TextBuffer.registerSerializeFormat

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

class TextBuffer
registerSerializeFormat

Parameters

mimeType string

the format's mime-type

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. [transfer none]

Meta