Bug#525699: python-gtk2: gtk.gdk.Pixbuf.add_alpha requires chars instead of ints

Luca Bruno lethalman88 at gmail.com
Sun Apr 26 16:47:28 UTC 2009


Package: python-gtk2
Version: 2.14.1-2
Severity: normal

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):
  File "<stdin>", line 1, in <module>
TypeError: GdkPixbuf.add_alpha() argument 2 must be char, not int
>>> 


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-gtk2 depends on:
ii  libatk1.0-0            1.26.0-1          The ATK accessibility toolkit
ii  libc6                  2.9-7             GNU C Library: Shared libraries
ii  libcairo2              1.8.6-2+b1        The Cairo 2D vector graphics libra
ii  libfontconfig1         2.6.0-3           generic font configuration library
ii  libfreetype6           2.3.9-4.1         FreeType 2 font engine, shared lib
ii  libglib2.0-0           2.20.1-1          The GLib library of C routines
ii  libgtk2.0-0            2.16.1-2          The GTK+ graphical user interface 
ii  libpango1.0-0          1.24.0-3+b1       Layout and rendering of internatio
ii  python                 2.5.4-2           An interactive high-level object-o
ii  python-cairo [python2. 1.8.4-3           Python bindings for the Cairo vect
ii  python-gobject [python 2.16.1-1          Python bindings for the GObject li
ii  python-numpy [python2. 1:1.2.1-1         Numerical Python adds a fast array
ii  python-support         1.0.2             automated rebuilding support for P
ii  python2.5              2.5.4-1           An interactive high-level object-o
ii  zlib1g                 1:1.2.3.3.dfsg-13 compression library - runtime

python-gtk2 recommends no packages.

Versions of packages python-gtk2 suggests:
ii  python-gtk2-doc               2.14.1-2   Python bindings for the GTK+ widge

-- no debconf information

-- 
http://syx.googlecode.com - Smalltalk YX
http://lethalman.blogspot.com - Thoughts about computer technologies
http://www.debian.org - The Universal Operating System
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20090426/c373b68c/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list