GNOME Bugzilla – Bug 597095
Add the PyObject type in column
Last modified: 2010-03-09 23:44:54 UTC
In the list of types column in the treemodel definition is presente GObject but not PyObject type so it need to change it handly in the xml. Is it possibile to Add or to set a free field?
I agree. Got the same problem. This is also asked for in https://bugzilla.gnome.org/show_bug.cgi?id=587523
Being able to add a custom type (even without validation) would at least make the treemodel editor useful for non C applications.
Should be a matter of loosening up the code that manages the column-type list data at: plugins/gtk+/glade-column-types.c. The code there currently requires a GType for each column type in the list, but there is no reason why it should have to be a GType. The best/easiest thing to do IMO would be to remove the GType constraint and allow the list to have dynamic entries, this way the user can enter any non-standard type. I would rather not include "PyObject" in the list unless it were loaded as some specification of the python catalog (i.e. let catalogs pull in new default data types for general type listings in Glade).
That sounds sensible. Having to write PyObject isn't much more magical than having to set up a catalog, and would work well enough. Besides that, I suppose that other bindings users would need their own types too.
*** Bug 587523 has been marked as a duplicate of this bug. ***
*** Bug 579957 has been marked as a duplicate of this bug. ***
Now you can add any litteral string as a column type... with git master.
Really nice. Will wait impatiently for a new release with this feature. Thanks a lot Tristan!