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 626227 - Migrate from PyGTK to PyGObject introspection-based bindings
Migrate from PyGTK to PyGObject introspection-based bindings
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: gnome-sudoku
trunk
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks: 626218
 
 
Reported: 2010-08-06 16:26 UTC by André Klapper
Modified: 2011-05-13 01:45 UTC
See Also:
GNOME target: ---
GNOME version: 2.31/2.32


Attachments
Remove most custom fonts and try to extract from the theme (7.33 KB, patch)
2011-05-05 01:09 UTC, John Stowers
none Details | Review
Use fonts from theme exclusively (6.91 KB, patch)
2011-05-05 01:41 UTC, John Stowers
none Details | Review
Remove most custom font settings and try to extract pango layout from the theme.This removes a lot of ugly code and should be more corect. (7.24 KB, patch)
2011-05-05 02:24 UTC, John Stowers
none Details | Review
Remove most custom fonts and try to extract from the theme (7.24 KB, patch)
2011-05-05 02:52 UTC, John Stowers
none Details | Review
Remove most custom fonts and try to extract from the theme (7.38 KB, patch)
2011-05-05 23:53 UTC, John Stowers
none Details | Review

Description André Klapper 2010-08-06 16:26:35 UTC
Grep'ing for pygtk-2.0 it seems that this module uses the stable bindings provided by PyGTK. 

As it is unlikely that anybody will continue maintaining these stable bindings, applications using PyGTK should be ported to using the dynamic Python bindings provided by PyGObject (now that PyGI has been merged into PyGObject).
The feedback on migration provided by application maintainers will also help PyGObject to improve its dynamic bindings.

Please see http://live.gnome.org/GnomeGoals/PythonIntrospectionPorting for more information and guidelines.

For help there is a mailing list at http://www.daa.com.au/mailman/listinfo/pygtk . For getting involved in the development of pygobject there is a mailing list at http://mail.gnome.org/mailman/listinfo/python-hackers-list . There is also the #python IRC channel on irc.gimp.net.

./gnome-games/configure.in:    pygtk-2.0 >= $PYGTK_REQUIRED],
Comment 1 Thomas Andersen 2011-01-16 10:40:03 UTC
I created a sudoku-pygobject branch to start working on this. Got it to the point where I can open the main window but there is still a lot to do still.

http://git.gnome.org/browse/gnome-games/log/?h=sudoku-pygobject


(long term plans still involve moving to vala but we need something for 3.0)
Comment 2 André Klapper 2011-01-17 21:03:57 UTC
[Removing 3.0 target as this is not a hard blocker, but a nice to have]
Comment 3 Robert Ancell 2011-04-08 01:50:09 UTC
Reassigned to gnome-sudoku as this is the last module that uses PyGTK.  Note that Sudoku is being rewritten in Vala (bug #633464) which will probably be completed in time for 3.2.
Comment 4 John Stowers 2011-04-08 23:14:43 UTC
progress update: the pygobject port seems to start up and try to work. some drawing bugs remain - likely related to the gtk2->3 transition.
Comment 5 John Stowers 2011-05-04 05:06:26 UTC
finished in master (will cherry-pick to gnome-3-0 for 3.0.2)
Comment 6 John Stowers 2011-05-05 01:09:26 UTC
Created attachment 187252 [details] [review]
Remove most custom fonts and try to extract from the theme
Comment 7 John Stowers 2011-05-05 01:41:32 UTC
Created attachment 187254 [details] [review]
Use fonts from theme exclusively

This is a broken experiment in using only fonts from the theme. Some things work better, and the code is much cleaner. It also highlights that there is still a focus tracking bug somewhere in the code. I think...
Comment 8 John Stowers 2011-05-05 02:24:41 UTC
Created attachment 187256 [details] [review]
Remove most custom font settings and try to extract pango layout from the theme.This removes a lot of ugly code and should be more corect.
Comment 9 John Stowers 2011-05-05 02:52:04 UTC
Created attachment 187258 [details] [review]
Remove most custom fonts and try to extract from the theme
Comment 10 John Stowers 2011-05-05 23:53:24 UTC
Created attachment 187329 [details] [review]
Remove most custom fonts and try to extract from the theme
Comment 11 John Stowers 2011-05-13 01:45:38 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.