Re: who define *_parent_class variable ?

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

 



Le lundi 28 avril 2008 à 21:07 +0000, KLEIN Stephane a écrit :> Hello,> > in many gobject source code I've some variable named > "foo_bar_parent_class". Example in gedit source code :> > * gedit_view_parent_class> * gedit_tab_parent_class> * gedit_statusbar_parent_class> > I would like to know what is the macro definition that define this > variable ? In gobject document, I found this : G_DEFINE_TYPE() [1] but > this macro is never called in previous examples (gedit source code).> > Someone can tell to me what define *_parent_class variable ?> > Thanks for your help,> Stephane> > [1] http://library.gnome.org/devel/gobject/2.6/gobject-Type-> Information.html#G-DEFINE-TYPE:CAPS
In your foo_bar_class_init function, add this line:
foo_bar_parent_klass = g_type_class_peek_parent (klass);
_______________________________________________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