On Mon, Jun 13, 2011 at 18:39, Pablo Sanchez <[email protected]> wrote:
> Hello,
>
> I've found a small bug when creating a ClutterBehaviour (with python
> bindings and Gnome Introspection)
>
> Python bindings:
>
>>>> import clutter
>>>> knots = "M 0 0 L 46340 0"
>>>> path = clutter.Path(knots)
>>>> path.get_length()
> 46340L
>>>> knots = "M 0 0 L 46341 0"
>>>> path = clutter.Path(knots)
>>>> path.get_length()
> 2147483648L
> Gnome Introspection:
>>>> from gi.repository import Clutter
>>>> knots = "M 0 0 L 46340 0"
>>>> path = Clutter.Path()
>>>> path.add_string(knots)
> True
>>>> path.get_length()
> 46340L
>>>> knots = "M 0 0 L 46341 0"
>>>> path.add_string(knots)
> True
>>>> path.get_length()
> 2147529988L

And this is what I get on F15 with the most recent PyGObject:

>>> from gi.repository import Clutter
>>> knots = "M 0 0 L 46340 0"
>>> path = Clutter.Path()
>>> path.add_string(knots)
True
>>> path.get_length()
46340L
>>> knots = "M 0 0 L 46341 0"
>>> path.add_string(knots)
True
>>> path.get_length()
46489L

This issue is most likely not related to Clutter, btw. Would be better
to file a bug in http://bugzilla.gnome.org/ under
pygobject/introspection.

If you cannot write a patch for yourself, the equivalent in C of your
snippet would help someone else fix it for you.

Regards,

Tomeu

> Carpe Noctem,
>
> Pablo
>
> _______________________________________________
> clutter-app-devel-list mailing list
> [email protected]
> http://lists.clutter-project.org/listinfo/clutter-app-devel-list
>
>
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to