[Gtk-sharp-list] How the bindings work

Miguel de Icaza miguel@ximian.com
06 Aug 2003 14:56:02 -0400


Hello,

> I am trying to get the SizeRequest from a GTK widget via gtk-sharp.  It
> doesn't seem to work right now:  WidthRequest and HeightRequest seem to
> return -1.  I'd like to try to fix this, but I'll need a little
> guidance, as I don't know much about language bindings.

My understanding was that -1 was a value returned when the widget was
not "ready" to provide this information.  I forget the details, but I
ran into that at some point doing something else (I just forget what it
was).

Maybe you needed to pack the widget/show-the-widget/realize-the-widget? 
Something like that.