Bug#296939: libpango1.0-0: pango_color_parse() should accept color format "rgb:RR/GG/BB"

Kevin B. McCarty "Kevin B. McCarty" <kmccarty@Princeton.EDU>, 296939@bugs.debian.org
Fri, 25 Feb 2005 15:59:48 -0500


Package: libpango1.0-0
Version: 1.8.0-3
Severity: normal

Hello,

In trying to port wmakerconf from GTK+ 1.2 to GTK+ 2.x, I have come across
the problem that wmakerconf no longer understands color strings of
the format rgb:RR/GG/BB (where RR, GG and BB are integers in hex format).
The reason is that gdk_color_parse() was formerly a wrapper around
XParseColor() and is now a wrapper around pango_color_parse().  Further
investigation reveals that pango_color_parse() has no mechanism to understand
this format of color specification.

This is annoying for two reasons: first, functionality present in an
earlier version of GTK+ has been lost for no good reason.  Second, the GTK+
API reference for version 2.8 is now misleading, since it untruthfully
states of gdk_color_parse():

	The text string can be in any of the forms accepted by XParseColor.

Please add back this functionality to pango_color_parse().  I'll submit
a patch myself if I have time in the next few days; otherwise, it doesn't
seem like a difficult job.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages libpango1.0-0 depends on:
ii  libc6                    2.3.2.ds1-20    GNU C Library: Shared libraries an
ii  libfontconfig1           2.2.3-4         generic font configuration library
ii  libfreetype6             2.1.7-2.3       FreeType 2 font engine, shared lib
ii  libglib2.0-0             2.6.2-1         The GLib library of C routines
ii  libpango1.0-common       1.8.0-3         Modules and configuration files fo
ii  libx11-6                 4.3.0.dfsg.1-12 X Window System protocol client li
ii  libxft2                  2.1.2-6         FreeType-based font drawing librar
ii  libxrender1              0.8.3-7         X Rendering Extension client libra
ii  xlibs                    4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu
ii  zlib1g                   1:1.2.2-4       compression library - runtime

-- no debconf information

regards,

-- 
Kevin B. McCarty <kmccarty@princeton.edu>   Physics Department
WWW: http://www.princeton.edu/~kmccarty/    Princeton University
GPG public key ID: 4F83C751                 Princeton, NJ 08544