[Mono-dev] TreeModelAdapter vs CellRendererCombo
Mike Kestner
mkestner at ximian.com
Mon Oct 15 13:49:54 EDT 2007
Miguel de Icaza wrote:
> There are a handful of Gtk# questions. I just forwarded one.
>
>
> ------------------------------------------------------------------------
>
> Subject:
> [Mono-dev] TreeModelAdapter vs CellRendererCombo
> From:
> Magnus Henoch <mange at freemail.hu>
> Date:
> Mon, 15 Oct 2007 12:11:29 +0200
> To:
> mono-devel-list at lists.ximian.com
>
> To:
> mono-devel-list at lists.ximian.com
Please send questions about Gtk# to gtk-sharp-list in the future, so we
can keep the discussion archives in one place where others will
hopefully find them.
> 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?
Bug. I need to add a GLib.Value ctor for the interface adapters. I'll
commit a fix to trunk.
Thanks for the report.
Mike
More information about the Mono-devel-list
mailing list