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?) Michalis _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel