On 01/09/2014 08:35 PM, E.S. Quinn wrote:
Sorry to bug again, but I'm hitting a stumbling block again. I'm using a custom TreeModel based on CustomList.d from the demo, and while it's working fine put into a TreeView, I'm having some weird OS-specific problems when I put it into a ComboBox
On Windows, the popup seems to work unless I use setWrapWidth, in which case I get a blank single-pixel popup.
On Linux, it's the same if I use setWrapWidth, but if I don't use setWrapWidth, the popup is still blank, but full width.I'm able to reproduce the behavior with a small change to DemoCustomList.d:
... code ...
This is on the GTK2 branch, if that affects anything.
After you add the renderer to the combobox you'll have to tell it which
column to render using:
view.addAttribute(renderer, "text", CustomListColumn.Name);
and for the second renderer / column:
view.addAttribute(renderer, "text", CustomListColumn.YearBorn);