How to pass NautilusOperationHandle to python extensions?



I'm working on updating the nautilus-python bindings to work with the
gir annotations and am having some trouble figuring out how to pass
the NautilusOperationHandle parameter (from update_file_info) to
python extensions.  In the current bindings, I pass extensions a
gpointer, then in the call to update_complete_invoke (which I have
written an override for) I get the handle from the pointer value.  But
with the new introspection bindings, the extensions have to call the
Nautilus.info_provider_update_complete_invoke function directly, and
it will only accept a Nautilus.OperationHandle type, and not a
gobject.GPointer type like extensions are passing now.

So what I'm trying to figure out is, how can I create a PyObject of
type Nautilus.OperationHandle type with the NautilusOperationHandle
pointer passed from Nautilus?

Adam


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]