[Thunar-dev] Double declarations with use of G_DEFINE_TYPE

Jeff Franks jcfranks at tpg.com.au
Mon Jun 6 11:06:54 CEST 2005


Benedikt Meurer wrote:

>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.
>
>
>  
>
Yes it was.

Jeff.



More information about the Thunar-dev mailing list