Re: Color in CList



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]