GNOME Bugzilla – Bug 626227
Migrate from PyGTK to PyGObject introspection-based bindings
Last modified: 2011-05-13 01:45:38 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],
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)
[Removing 3.0 target as this is not a hard blocker, but a nice to have]
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.
progress update: the pygobject port seems to start up and try to work. some drawing bugs remain - likely related to the gtk2->3 transition.
finished in master (will cherry-pick to gnome-3-0 for 3.0.2)
Created attachment 187252 [details] [review] Remove most custom fonts and try to extract from the theme
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...
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.
Created attachment 187258 [details] [review] Remove most custom fonts and try to extract from the theme
Created attachment 187329 [details] [review] Remove most custom fonts and try to extract from the theme
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.