This looks tricky. Problem is that there is all sorts of magic in StoryText to handle gtk.TreeView, whose API has many set- functions and very few get- ones. In particular there seems to be no way to get at the attribute mapping from the cell renderers after the fact. So far it works by monkey-patching the set methods, but that's not an option here, as everything is set up in C code where I can't interfere with it.
The only way I can see to fix this is to actually parse the UI description myself and extract this information. Any better suggestions gratefully received...
This looks tricky. Problem is that there is all sorts of magic in StoryText to handle gtk.TreeView, whose API has many set- functions and very few get- ones. In particular there seems to be no way to get at the attribute mapping from the cell renderers after the fact. So far it works by monkey-patching the set methods, but that's not an option here, as everything is set up in C code where I can't interfere with it.
The only way I can see to fix this is to actually parse the UI description myself and extract this information. Any better suggestions gratefully received...