GNOME Bugzilla – Bug 586094
gtk.gdk.Pixbuf.add_alpha requires chars instead of ints
Last modified: 2009-06-17 22:13:41 UTC
Original report from Luca Bruno: http://bugs.debian.org/525699 The documentation describes its usage using integers. More over, the method doesn't seem to work correctly. Apparently, the alpha isn't added even using chr(0), chr(0), chr(0). >>> import gtk >>> pixbuf = gtk.gdk.Pixbuf (gtk.gdk.COLORSPACE_RGB, True, 8, 100, 100) >>> pixbuf.add_alpha (True, 0, 0, 0) Traceback (most recent call last):
+ Trace 216044
>>>
Fixed, thanks. The patch badly breaks backwards compatibility, but there is likely no code using this function anyway, as it seems pretty impossible to use in its pre-2.16 state.