Re: Color in CList
- From: Luis rosa <luis viaxxi pt>
- To: Gutemberg <gutoav enersulnet com br>
- Cc: gtk-app-devel-list gtk org
- Subject: Re: Color in CList
- Date: Sun, 21 Oct 2001 13:52:41 +0000
G> It is possible to put color in just a column or just a line in a CList ?
yes it is, with gtk_clist_set_row_style(clist, row, style);
and to build a style
GtkStyle *style=NULL;
GdkColor style_color;
//base = magenta
style_color.red= 0; // just change the numbers
style_color.green = 60000;
style_color.blue = 65535;
style = gtk_style_copy (GTK_WIDGET (clist)->style);
style->base[GTK_STATE_NORMAL] = style_color;
I'm sure this IS NOT the best way to do it, because there should not be
any magical numbers in your code, but its a quick way to do it
I hope someone comeup with a better way
Luis Rosa
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]