[fpc-devel] gboolean troubles with FPC trunk

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Apr 20 09:34:55 CEST 2009


On 10 Apr 2009, at 22:46, Michalis Kamburelis wrote:

> Jonas Maebe wrote:
>>
>> On 10 Apr 2009, at 03:47, Michalis Kamburelis wrote:
>>
>>> and similar to convert GBoolean to boolean. The uncomfortable thing
>>> about this is that all GTK/Glib/GtkGLExt/etc. code will have to be
>>> corrected and "infested" with these dummy gboolean<->boolean  
>>> conversions.
>>>
>>> Any ideas?
>>
>> Another possible solution is to do it like what was done in r10577  
>> for
>> xlib.
>
> This trick will not work as smoothly, as we have a lot of callbacks  
> for
> GTK that must return gboolean. All callbacks passed to  
> g_signal_connect
> and such. And inside this callback, you have to return 0/1
> (gfalse/gtrue) to the GTK.

Maybe you can solve this with an overloaded assignment operator  
between gboolean and boolean?


Jonas




More information about the fpc-devel mailing list