TextBuffer.registerDeserializeFormat

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

class TextBuffer
registerDeserializeFormat

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