[Thunar-dev] Double declarations with use of G_DEFINE_TYPE

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Mon Jun 6 09:52:05 CEST 2005


Benedikt Meurer schrieb:
>>I noticed that you declare init and class_init functions, and a 
>>parent_class variable in class_init, when you use G_DEFINE_TYPE. This 
>>define declares these functions and variable for you.
> 
> I know, that's intentional. I prefer to explicitly declare all static 
> functions, to make it easier to read the code later.

Oh, interesting. The parent_class is really handled by 
G_DEFINE_TYPE_EXTENDED() now. Have to check if that was backported to 
Glib 2.4.

Benedikt



More information about the Thunar-dev mailing list