GNOME Bugzilla – Bug 664496
[patch] Add overrides for Clutter
Last modified: 2012-02-10 08:26:56 UTC
As Clutter is now a part of the core Gnome libraries, I think it would be appropriate to ship the Clutter.py override in PyGObject package and finally bury PyClutter. The overrides provide some fixes for Actor.animate(), State.set_key() and other functions that use GValues as well as a more "pythonic handling" for boxed types, containers et al. Support for Cogl is missing, as Cogl isn't very introspection friendly yet. Maybe I rip the cogl parts out of PyClutter and provide a foreign module if somebody is interested.
Created attachment 201855 [details] [review] pygi-convert: Handle Clutter and Cogl
Created attachment 201856 [details] [review] overrides: Add overrides for Clutter Apart from fixing some method calls to make Clutter feel a bit more "pythonic", this override adds: * Support for some Python protocols in boxed types like Clutter.Color and Clutter.ActorBox * Sane handling of Clutter.Actor.animate() and friends * GValue fix for Clutter.Animator.set_key() and Clutter.Stage.set_key() Fixes https://bugzilla.gnome.org/show_bug.cgi?id=663914 * Defaults for some constructors to ease the transition from the old PyClutter bindings to PyGObject * Pretty printing for Clutter.Event and other boxed types to ease debugging
Created attachment 201857 [details] [review] Adding some unit-tests for Clutter.py overrides
Created attachment 202118 [details] [review] overrides: Add overrides for Clutter Apart from fixing some method calls to make Clutter feel a bit more "pythonic", this override adds: * Support for some Python protocols in boxed types like Clutter.Color and Clutter.ActorBox * Sane handling of Clutter.Actor.animate() and friends * GValue fix for Clutter.Animator.set_key() and Clutter.Stage.set_key() Fixes https://bugzilla.gnome.org/show_bug.cgi?id=663914 * Defaults for some constructors to ease the transition from the old PyClutter bindings to PyGObject * Pretty printing for Clutter.Event and other boxed types to ease debugging
Sorry, we aren't accepting overrides from Clutter. You need to have Clutter install these. Gtk overrides are purely there for historical reasons. pygi-convert patches can be applied though.
Comment on attachment 201855 [details] [review] pygi-convert: Handle Clutter and Cogl Pushed the pygi-convert.sh patch, thanks!
Closing bug, as per John's comment above (comment 5).