After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
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
The h2def.py script doesn't generate (of-object "XXX") line into the def file...
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: codegen
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2005-09-24 19:45 UTC by Erik Karlsson
Modified: 2008-07-16 10:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Erik Karlsson 2005-09-24 19:45:14 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
Comment 1 Johan (not receiving bugmail) Dahlin 2006-04-01 17:54:52 UTC
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