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 652860 - errors in pygi-convert.sh
errors in pygi-convert.sh
Status: RESOLVED WONTFIX
Product: pygobject
Classification: Bindings
Component: general
Git master
Other Linux
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-17 18:32 UTC by Benny Malengier
Modified: 2013-02-27 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Benny Malengier 2011-06-17 18:32:36 UTC
There are several errors in pygi-convert.sh which now cause me extra work. I got the shell from the link on pygobject website

1/
    -pe "s/pack_start\(([^,\)]*)\)/pack_start\(\1, True, True, 0\)/g;" \

In my case this causes things to pack_start(gtk.Label("test"),False) to become pack_start(Gtk.Label("test",True, True, 0),False)

2/

    -pe "s/([^\.^ ]*)\.drag_dest_set\(/Gtk.drag_dest_set\(\1, /g;" \

Gtk.drag_dest_set does not exist. Nothing should change for drag_dest_set

Same for 
    -pe "s/self.drag_source_unset\(\)/Gtk.drag_source_unset\(self\)/g;" \
    -pe "s/self.drag_dest_unset\(\)/Gtk.drag_dest_unset\(self\)/g;" \
Comment 1 Martin Pitt 2012-04-22 14:48:54 UTC
Dropped drag methods in

http://git.gnome.org/browse/pygobject/commit/?id=e03284f852f0e404cc91374f3e2e42b0ac1977b4

These were correct at the time when they got introduced, but since then the drag functions were fixed to be proper methods.

pack_start() is harder to fix with a simple sed. It is currently set up to fix the most common case without using the pygtk default arguments. Keeping bug open for this part.
Comment 2 Martin Pitt 2013-02-27 14:28:55 UTC
The drag methods were fixed, and pack_start() is unfixable without completely redesigning pygi-convert.sh. Many FOSS projects were converted ages ago, so spending lots of time on this isn't worth it any more IMHO. If someone wants to work on this though, please reopen.

Thanks for the report!