bug in gtkclist ??




I think I found a bug in gtkclist.c in fuction draw_row.

lines 2476-2491 of gtkclist.c in gtk+-1.0.0 and gtk+-1.0.1
>      if (clist_row->fg_set)
>	 {
>	   gdk_gc_set_foreground (clist->fg_gc, &clist_row->foreground);
>	   fg_gc = clist->fg_gc;
>	 }
>      else
>	 fg_gc = widget->style->fg_gc[GTK_STATE_NORMAL];
>	 
>      if (clist_row->bg_set)
>	 {
>	   gdk_gc_set_foreground (clist->bg_gc, &clist_row->background);
	   ^^^^^^^^^^^^^^^^^^^^^
>	   bg_gc = clist->bg_gc;
>	 }
>      else
>	 bg_gc = widget->style->bg_gc[GTK_STATE_PRELIGHT];

Shouldn't gdk_gc_set_foreground be replaced by gdk_gc_set_background ??

I've not tested with this replaced, but setting foreground is working, but
setting background doesn't...

Regards, Pixel.	



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