Re: [gtk-list] Background color in GtkText



On Mon, 07 Sep 1998, tile@primenet.com wrote:
>
>
>This is the step in the right direction, but you're using the wrong array.
>Here's how I would do it...
>
>GtkStyle *style;
>
>...
>
>style = gtk_style_new ();
>style->fg[GTK_STATE_NORMAL] = foreground;
>style->text[GTK_STATE_NORMAL] = foreground;
>style->base[GTK_STATE_NORMAL] = background; /* base not bg */
>
>gtk_widget_set_style (GTK_WIDGET (entry), style);
>
>Hope this helps.
>
>
this seems to work for entry widgets, unfortunately not for text ones, (but
should) anyway thanks for the answer, with pleasure i see that sometime
someone in this list has the time to answer to numerous questions. A bit of
statistics: i'm into the list since July and there three times less answers
than questions.
sincerely.
--
Mario Motta
===========
AI Research Group - Rimini
mmotta@guest.net
http://www.guest.net/homepages/mmotta/index.htm



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