[patch] Re: Pixmap Odd.. Sample Pixmaps



Hi,

> 
> > Could you put an offending xpm up somewhere? Although I can see
> > some problems in gdk_pixmap_extract_color(), they don't seem like
> > they would exactly cause your problem.
> 
> OK, here they go, the first (mb-asterisk.s.xpm) is a 'broken icon' when
> used in GTK (but fine everywhere else), wherease the second (mb-question.s.xpm)
> loads perfectly with GDK.
> 

The reason is that gdk_color_parse() gets fed the rest of the line after
the color definitions "c #xxyyzz" and XColorParse doesn't grok that.
The last pixmap works because the "c" statement is the last in the line.

Here's a patch (for 1.0.4).

Tom

--

tomb@gimp.org

gdkpixmap.diff.gz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]