Style.[get|set]_style_property crashes if value is a cairo object

Bug #78363 reported by Gian Mario Tagliaretti
4
Affects Status Importance Assigned to Milestone
pygoocanvas
Fix Committed
Undecided
Gustavo Carneiro

Bug Description

Trying to pass a cairo.SolidPattern as value fails:

>>> pattern = cairo.Pattern (color.red / 65535.0,
... color.green / 65535.0,
... color.blue / 65535.0)
>>> style = goocanvas.Style ()
>>> style.set_style_property ("goo_canvas_style_fill_pattern_id", pattern)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/warnings.py", line 61, in warn
    warn_explicit(message, category, filename, lineno, module, registry)
  File "/usr/lib/python2.4/warnings.py", line 82, in warn_explicit
    for item in filters:
  File "/usr/lib/python2.4/warnings.py", line 61, in warn
    warn_explicit(message, category, filename, lineno, module, registry)
  File "/usr/lib/python2.4/warnings.py", line 82, in warn_explicit
    for item in filters:
  File "/usr/lib/python2.4/warnings.py", line 61, in warn
    warn_explicit(message, category, filename, lineno, module, registry)
  File "/usr/lib/python2.4/warnings.py", line 82, in warn_explicit
    for item in filters:
TypeError: could not get typecode from object

Gustavo Carneiro (gjc)
Changed in pygoocanvas:
assignee: nobody → gjc
status: Unconfirmed → Confirmed
Revision history for this message
Gustavo Carneiro (gjc) wrote :

Fixed in SVN trunk.

Changed in pygoocanvas:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.