[fpc-devel] BUG: gtk2 unit and GtkFileChooserDialog
micha at neli.hopto.org
Fri Jun 10 09:43:38 CEST 2005
On Fri, 10 Jun 2005 01:39:23 +0100
"peter green" <plugwash at bircd.org> wrote:
> the better soloution is dlopen/dlsym this allows the descision on what to
> use to be moved to app development time or even runtime. (e.g. only using
> new features if they are actually availible)
> unfortunately doing this by hand is tedious++ so i think code generation
> will have to be used to reasonablly do this. basically you have to generate
> stubs that check if a procvar is nill,call a function to populate it if it
> is nil and then call down the procvar. the code generator would take a name
> and a parameter list and spit out theese stubs.
The stubs don't implement the functionality so you have a half-broken app. The problem really has to be solved by the app developer, not the bindings maintainer. The simplest solution is to require users to have gtk 2.6 or whatever library (it's free anyway).
More information about the fpc-devel