[Mono-dev] TreeModelAdapter vs CellRendererCombo
Magnus Henoch
mange at freemail.hu
Mon Oct 15 06:11:29 EDT 2007
[ code is in Boo, if you're wondering ]
Using GTK# from SVN, I have created a class called ChainsModel:
class ChainsModel(GLib.Object, TreeModelImplementor):
[....]
It works fine when I use it as a model for a TreeView (wrapped by
TreeModelAdapter):
chains.Model = TreeModelAdapter(chainsModel)
However, when I try to use it with a CellRendererCombo:
combo = CellRendererCombo()
combo.Model = TreeModelAdapter(chainsModel)
combo.TextColumn = 0
combo.Editable = true
I get this warning:
(editor:8956): GLib-GObject-WARNING **: unable to set property `model' of type `GtkTreeModel' from value of type `GtkSharpValue'
and the combo box does nothing when clicked.
Is this a bug or user error?
Magnus
More information about the Mono-devel-list
mailing list