1.6 <GdkContentDeserializer>

Class: <GdkContentDeserializer>

It derives from <GObject>.

Deserializes content received via inter-application data transfers.

The <GdkContentDeserializer> transforms serialized content that is identified by a mime type into an object identified by a GType.

GTK provides serializers and deserializers for common data types such as text, colors, images or file lists. To register your own deserialization functions, use content_register_deserializer.

Also see <GdkContentSerializer>.

Procedures

Method: content-deserializer:get-cancellable self ⇒ %return
Method: get-cancellable self ⇒ %return

Gets the cancellable for the current operation.

This is the <GCancellable> that was passed to content-deserialize-async.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

%return

Returned: a <GCancellable>, or #f.

the cancellable for the current operation

Method: content-deserializer:get-gtype self ⇒ %return
Method: get-gtype self ⇒ %return

Gets the GType to create an instance of.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

%return

Returned: a class, or a GType number.

the GType for the current operation

Method: content-deserializer:get-input-stream self ⇒ %return
Method: get-input-stream self ⇒ %return

Gets the input stream for the current operation.

This is the stream that was passed to content-deserialize-async.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

%return

Returned: a <GInputStream>.

the input stream for the current operation

Method: content-deserializer:get-mime-type self ⇒ %return
Method: get-mime-type self ⇒ %return

Gets the mime type to deserialize from.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

%return

Returned: a string.

the mime type for the current operation

Method: content-deserializer:get-priority self ⇒ %return
Method: get-priority self ⇒ %return

Gets the I/O priority for the current operation.

This is the priority that was passed to content-deserialize-async.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

%return

Returned: a 32-bit integer.

the I/O priority for the current operation

Method: content-deserializer:get-task-data self ⇒ %return
Method: get-task-data self ⇒ %return

Gets the data that was associated with the current operation.

See content-deserializer:set-task-data.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

%return

Returned: a foreign pointer, or #f.

the task data for self

Method: content-deserializer:get-user-data self ⇒ %return
Method: get-user-data self ⇒ %return

Gets the user data that was passed when the deserializer was registered.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

%return

Returned: a foreign pointer, or #f.

the user data for this deserializer

Method: content-deserializer:get-value self ⇒ %return
Method: get-value self ⇒ %return

Gets the <GValue> to store the deserialized object in.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

%return

Returned: a <GValue>.

the <GValue> for the current operation

Method: content-deserializer:return-error self error
Method: return-error self error

Indicate that the deserialization has ended with an error.

This function consumes error.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

error

Passed: a <GError>.

a <GError>

Method: content-deserializer:return-success self
Method: return-success self

Indicate that the deserialization has been successfully completed.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

Method: content-deserializer:set-task-data self data notify
Method: set-task-data self data notify

Associate data with the current deserialization operation.

self

Passed: a <GdkContentDeserializer>.

a <GdkContentDeserializer>

data

Passed: a foreign pointer, or a bytevector, or #f.

data to associate with this operation

notify

Passed: a procedure.

destroy notify for data

See GDestroyNotify for how it is called.