On Thu, 2007-10-11 at 09:19 -0400, Claudio Saavedra wrote:
> El jue, 11-10-2007 a las 15:05 +0200, Sergio Perticone escribió:
> > struct _MyWindow {
> > GtkWidget* window;
> > GtkWidget* button;
> > };
>
> Typically, you wouldn't want to use a pointer to the parent class in the
> class definition. Something like
>
> struct _MyWindow {
> GtkWidget window;
> GtkWidget* button;
> };
>
> should make it.
> Claudio
>
Oh true. sizeof(*my_widget) was obviously smaller than
sizeof(GtkWindow)... it was a pointer!
I replace "GtkWidget* window" with "GtkWindow window" in struct
_MyWindow{} and it works!
Thanks a lot,
s.
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list