Re: gobject inheritance for GtkWindow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 thansizeof(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 listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux