[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GtkText Widget question
- From: Ajit Krishnan <akrishna julian uwo ca>
- To: gtk-app-devel-list redhat com
- Subject: Re: GtkText Widget question
- Date: Sun, 29 Aug 1999 14:42:02 -0400
J.Blunck@tu-harburg.de [J.Blunck@tu-harburg.de] wrote:
> On 29 Aug, Ajit Krishnan wrote:
> > J.Blunck@tu-harburg.de [J.Blunck@tu-harburg.de] wrote:
> >> On 28 Aug, J.Blunck@tu-harburg.de wrote:
> >> > How can I change the colour of the font in a text widget by default ?
> >> > I added a widget_class "*Text* to my gtkrc but the font is always black.
> >> >
> >> > Any hints ?
> >> >
> >> > Jan
> >>
> >> I got it myself. Thanks,
> >
> > would you mind sharing the answer with the rest of us?
> >
> > thanks,
> > ajit
> >
>
> Oooh, yeah! It's a top secret answer. Coming strait from KGB labs ;-)
thank you,
ajit
> For entries the font color changes when you define fg[] = {}. But its
> different for GtkText Widgets. You have to define text[] = {} to change
> the font color. Here is my gtkrc snippet for this:
>
> -8<--
>
> style "text"
> {
> fg[SELECTED] = { 0.99, 0.99, 0.99 }
> bg[SELECTED] = { 0.60, 0.60, 0.60 }
> base[NORMAL] = { 0.0, 0.0, 0.0 }
> fg[NORMAL] = { 0.60, 0.60, 0.60 }
>
> text[NORMAL] = { 0.60, 0.60, 0.60 }
> }
>
> widget_class "*GtkText" style "text"
>
> -8<--
>
> Regards,
> Jan
> --
> "May the source be with you !"
> --
> Jan Blunck Technische Universität Hamburg-Harburg
> J.Blunck@tu-harburg.de http://www.tu-harburg.de/~sejb3103/
>
>
> --
> To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
> Mailing list concerns should be mailed to <listmaster@redhat.com>
--
Ajit Krishnan
ajit@home.com
akrishna@julian.uwo.ca
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]