Re: Pixmap Odd.. Sample Pixmaps



> 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.
> 
> Regards,
>                                         Owen
> 

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.

		Cheers,
			Emilio

**** ******** B E G I N ***** ********
/* XPM */
static char *w95mbx04[] = {
/* w95mbx04 pixmap
 * width height ncolors chars_per_pixel */
"32 32 6 1 ",
/* colors */
"0 c #000000   m black  s s_black",
"a c #808080   m black  s s_darkgray",
"A c #c0c0c0   m white  s s_gray",
"B c #0000FF   m white  s s_blue",
"W c #FFFFFF   m white  s s_white",
"  c none      m white  s none",
"           aaaaaaaa             ",
"        aaaAWWWWWWAaaa          "
"      aaAWWWWWWWWWWWWAaa        ",
"     aAWWWWWWWWWWWWWWWWAa       ",
"    aWWWWWWWABBBBAWWWWWWW0      ",
"   aWWWWWWWWBBBBBBWWWWWWWW0     ",
"  aWWWWWWWWWBBBBBBWWWWWWWWW0    ",
" aAWWWWWWWWWABBBBAWWWWWWWWWA0   ",
" aWWWWWWWWWWWWWWWWWWWWWWWWWW0a  ",
"aAWWWWWWWWWWWWWWWWWWWWWWWWWWA0a ",
"aWWWWWWWWWWBBBBBBBWWWWWWWWWWW0a ",
"aWWWWWWWWWWWWBBBBBWWWWWWWWWWW0aa",
"aWWWWWWWWWWWWBBBBBWWWWWWWWWWW0aa",
"aWWWWWWWWWWWWBBBBBWWWWWWWWWWW0aa",
"aWWWWWWWWWWWWBBBBBWWWWWWWWWWW0aa",
"aAWWWWWWWWWWWBBBBBWWWWWWWWWWA0aa",
" aWWWWWWWWWWWBBBBBWWWWWWWWWW0aaa",
" aAWWWWWWWWWWBBBBBWWWWWWWWWA0aaa",
"  aWWWWWWWWBBBBBBBBBWWWWWWW0aaa ",
"   0WWWWWWWWWWWWWWWWWWWWWW0aaaa ",
"    0WWWWWWWWWWWWWWWWWWWW0aaaa  ",
"     0AWWWWWWWWWWWWWWWWA0aaaa   ",
"      00AWWWWWWWWWWWWA00aaaa    ",
"       a000AWWWWWWA000aaaaa     ",
"        aaa000AWWW0aaaaaaa      ",
"          aaaa0WWW0aaaaa        ",
"             a0WWW0aa           ",
"               0WW0aa           ",
"                0W0aa           ",
"                 00aa           ",
"                  aaa           ",
"                   aa           ",
};
**** 'broken' mb-asterisk.s.xpm ********

**** ********* C U T ******** ********

**** ******** B E G I N ***** ********
**** 'good' mb-question.s.xpm ********
/* XPM */
static char * mb_question_s_xpm[] = {
/* w95mbx02 pixmap
 * width height ncolors chars_per_pixel */
"32 32 6 1",
/* colors */
" 	s none	m white	c none",
".	s s_darkgray	m black	c #808080",
"X	s s_gray	m white	c #c0c0c0",
"o	s s_white	m white	c white",
"O	s s_blue	m white	c #0000FF",
"+	s s_black	m black	c black",
/**/
"           ........             ",
"        ...XooooooX...          ",
"      ..XooooooooooooX..        ",
"     .XooooooooooooooooX.       ",
"    .oooooooo.OO.Xooooooo+      ",
"   .oooooooXOOOOOOXooooooo+     ",
"  .oooooooXOXooOOOOXooooooo+    ",
" .XoooooooOOooooOOOOoooooooX+   ",
" .ooooooooOOOOooOOOOoooooooo+.  ",
".XooooooooOOOOoXOOOOooooooooX+. ",
".oooooooooXOOXoOOOOoooooooooo+. ",
".oooooooooooooXOOOooooooooooo+..",
".oooooooooooooOOOoooooooooooo+..",
".oooooooooooooOOXoooooooooooo+..",
".oooooooooooooOOooooooooooooo+..",
".XooooooooooooooooooooooooooX+..",
" .oooooooooooXOOXooooooooooo+...",
" .XooooooooooOOOOooooooooooX+...",
"  .ooooooooooOOOOoooooooooo+... ",
"   +oooooooooXOOXooooooooo+.... ",
"    +oooooooooooooooooooo+....  ",
"     +XooooooooooooooooX+....   ",
"      ++XooooooooooooX++....    ",
"       .+++XooooooX+++.....     ",
"        ...+++Xooo+.......      ",
"          ....+ooo+.....        ",
"             .+ooo+..           ",
"               +oo+..           ",
"                +o+..           ",
"                 ++..           ",
"                  ...           ",
"                   ..           "};
**** ********* C U T ******** ********

-- 
      __o          "Admit nothing, deny everything, demand proof. :)"
    _`\<,_           -James Ebbs
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
                    D. Emilio Grimaldo Tunon
http://www.iaehv.nl/users/grimaldo/
http://www.iaehv.nl/users/grimaldo/cv/
http://www.iaehv.nl/users/grimaldo/panama.html
http://www.iaehv.nl/users/grimaldo/Linux/



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