[Gtk-sharp-list] Combo Bug?
Todd Berman
tberman@sevenl.net
Tue, 22 Jun 2004 14:35:35 -0400
Przemyslaw Sowa wrote:
> Hi!
>
> I think I've found a bug.
Its not exactly a bug. GtkComboBox is a new gtk+ 2.4 class, and we don't
wrap 2.4 yet.
We wrap 2.2, so you have to stick to using 2.2 widgets for right now. In
general, until we wrap 2.4, you are better off using glade 2.0.1 instead
of the newer 2.5 and 2.6 stuff.
--Todd
>
> I have a .glade file describing simple window with ComboBox (Class:
> GtkComboBox in Glade) and following code:
>
> [Glade.Widget] Combo comboRecorder;
>
> When I run the app I get this error:
>
> Unhandled Exception: System.ArgumentException: Object type cannot be
> converted to target type.
> Parameter name: val
> in <0x000bc> System.Reflection.MonoField:SetValue
> (object,object,System.Reflection.BindingFlags,System.Reflection.Binder,System.Globalization.CultureInfo)
> in <0x001d9> Glade.XML:BindFields (object,System.Type)
> in <0x0001a> Glade.XML:BindFields (object)
> in <0x0001a> Glade.XML:Autoconnect (object)
> in <0x00071> gBurnerExpress.EraseDialog:.ctor (Burn.Burner)
> in <0x0002d> gBurnerExpress.GladeApp:OnButtonEraseClicked
> (object,System.EventArgs)
> in <0x0006a> (wrapper delegate-invoke)
> System.MulticastDelegate:invoke_void_object_EventArgs
> (object,System.EventArgs)
> in <0x00120> GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int)
> in <0x00055> (wrapper native-to-managed)
> GtkSharp.voidObjectSignal:voidObjectCallback (intptr,int)
> in (unmanaged) (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in <0x00004> (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in <0x00007> Gtk.Application:Run ()
> in <0x000ad> gBurnerExpress.GladeApp:.ctor (string[])
> in <0x00020> gBurnerExpress.GladeApp:Main (string[])
>
> But when I change this widget to GtkComboBoxEntry (just for testing) it
> works. I don't know what to do?
>
> I'm using mono beta3 from go-mono.com on fedora2.
>
> Przemyslaw Sowa
>
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>