[fpc-devel] gboolean troubles with FPC trunk

Michalis Kamburelis michalis.kambi at gmail.com
Fri Apr 10 22:46:31 CEST 2009

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.

So you cannot hide the troubles with overloading, like it was done for
xlib... (Unless you would make "proxy callbacks", overloaded procedure
that registers internal callback with GTK, and internal callback calls
actual user callback... I guess we don't want to go into such mess?)


More information about the fpc-devel mailing list