[Thunar-dev] Need help with thunarx-python bindings issue

Adam Plumb adamplumb at gmail.com
Fri Dec 11 17:07:18 CET 2009

hi all, I'm working on creating python bindings for the thunar extension
framework.  The code is mainly based on the nautilus-python bindings, and I
also took some configure.ac and Makefile.am code from the thunar-vcs-plugin
project and others.

I've got the basic code compiling and running, but I'm running into an issue
in the get_(folder|file)_actions functions with converting a ThunarxFileInfo
object into a PyObject to pass to the python extension.  When I run the
pygobject_new() function on the GtkWidget window object, it works fine.  But
when I run pygobject_new on the ThunarxFileInfo object, I get the following

TypeError: multiple bases have instance lay-out conflict
assertion failed: (tp != NULL)

I'm pretty new to python bindings, c code, thunar, and pretty much
everything, and I'm learning as I go, so I was hoping someone here would
take an interest and look at the code and see if they can find anything I'm
doing wrong.

The project is available at: http://github.com/adamplumb/thunarx-python
The code in question is at:

The code is written for thunar master, and requires thunarx-2.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20091211/309727c7/attachment.html>

More information about the Thunar-dev mailing list