[Thunar-dev] Double declarations with use of G_DEFINE_TYPE

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Mon Jun 6 17:55:26 CEST 2005


Jeff Franks wrote:
>>>>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.
> 
> Yes it was.

Indeed, thanks. Looks like this was added with GLib 2.4.x. I somehow 
missed that.

> Jeff.

greets,
Benedikt



More information about the Thunar-dev mailing list