Tables don't work with GtkBuilder
Bug #1027609 reported by
Thomas Leonard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StoryText |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Probably a similar problem to #1022459, but events on GtkTreeView widgets created by GtkBuilder don't seem to work.
The attached test case opens a window showing two rows. Double-clicking on a row prints the values to stdout. StoryText reports:
ERROR: Could not find the relevant column IDs, so cannot describe tree view!
Thanks,
To post a comment you must log in.
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...