GNOME Bugzilla – Bug 317124
The h2def.py script doesn't generate (of-object "XXX") line into the def file for a function if there exist a space between the class object variable and the last parenthesis
Last modified: 2008-07-16 10:12:45 UTC
For example Lets assume that we have an SOMETHING.h file. It has following function definition void pl_player_play( PlPlayer* self ); Where the PlPlayer is a GObject and the self is a reference to the PlPlayer's object. Now if the folowing command is run usr/share/pygtk/2.0/codegen/h2def.py SOMETHING.h > something.defs A following definition is created for that function: (define-method play (c-name "pl_player_play") (return-type "none") ) However if the function defition is changed to: void pl_player_play( PlPlayer* self); /*<- note, no space*/ and the script is executed the definition will be (define-method play (of-object "PlPlayer") (c-name "pl_player_play") (return-type "none") ) which I think is the desired output
Fixes in CVS: Checking in ChangeLog; /cvs/gnome/gnome-python/pygtk/ChangeLog,v <-- ChangeLog new revision: 1.1369; previous revision: 1.1368 done Checking in codegen/h2def.py; /cvs/gnome/gnome-python/pygtk/codegen/h2def.py,v <-- h2def.py new revision: 1.26; previous revision: 1.25 done