Re: howtos for php-gtk ?

[email protected] (Elizabeth M Smith) Mon, 17 Aug 2009 15:45:20 -0400
Newsgroups php.gtk.dev
Message-ID <[email protected]>
Rainer Stötter wrote:
> Hello,
> 
> I want to use the report writing application Agata. It depends on php-gtk ver 
> 1 but I want to use php-gtk-2.0.1. Therefore the application needs some 
> revision. The php-gtk would need some revision, too. 
> I wonder whether there is any documentation of the generator for php-gtk-2.0.1  
> available in the net ?  
> I did not find any documentation for the use of the generator.php-script. Is 
> there any documentation available which documents the use of the generator, 
> it's structures and how to apply new features (missing classes / missing 
> methods) to the definition scripts ?
> 
> Rainer

When you compile php-gtk the source code is generated and logs are 
written for items that could not be generated.

If an item cannot automatically be generated, you need to add it to an 
"overrides" file - basically this is a block of C code that will be 
placed inline in the generated code file.  So you find a missing item, 
write the C code to make the missing item work, then put the code into 
the overrides file.  Then delete the generated code and recompile - your 
new override will be placed into the generated code file and hopefully 
compiles (and works ) properly.

You shouldn't need to add anything to the definition scripts unless 
you're trying to do additional support for new versions of php-gtk.

In that case you need to create an entirely new definitions file just 
for that version (see the gtk-2.12.defs for example) we're using the OLD 
format of pygtk for definition files right now.

Thanks,
Elizabeth Smith