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 664496 - [patch] Add overrides for Clutter
[patch] Add overrides for Clutter
Status: RESOLVED WONTFIX
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other All
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2011-11-21 19:33 UTC by Bastian Winkler
Modified: 2012-02-10 08:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pygi-convert: Handle Clutter and Cogl (5.78 KB, patch)
2011-11-21 19:33 UTC, Bastian Winkler
committed Details | Review
overrides: Add overrides for Clutter (36.49 KB, patch)
2011-11-21 19:33 UTC, Bastian Winkler
none Details | Review
Adding some unit-tests for Clutter.py overrides (10.37 KB, patch)
2011-11-21 19:33 UTC, Bastian Winkler
none Details | Review
overrides: Add overrides for Clutter (37.85 KB, patch)
2011-11-25 10:34 UTC, Bastian Winkler
none Details | Review

Description Bastian Winkler 2011-11-21 19:33:27 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.
Comment 1 Bastian Winkler 2011-11-21 19:33:29 UTC
Created attachment 201855 [details] [review]
pygi-convert: Handle Clutter and Cogl
Comment 2 Bastian Winkler 2011-11-21 19:33:32 UTC
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
Comment 3 Bastian Winkler 2011-11-21 19:33:35 UTC
Created attachment 201857 [details] [review]
Adding some unit-tests for Clutter.py overrides
Comment 4 Bastian Winkler 2011-11-25 10:34:17 UTC
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
Comment 5 johnp 2011-11-28 17:32:00 UTC
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 6 Martin Pitt 2012-02-10 08:26:36 UTC
Comment on attachment 201855 [details] [review]
pygi-convert: Handle Clutter and Cogl

Pushed the pygi-convert.sh patch, thanks!
Comment 7 Martin Pitt 2012-02-10 08:26:56 UTC
Closing bug, as per John's comment above (comment 5).