RE: How can I change color of fonts in GTK 1.2
- From: "Krzysztof Magrel" <xychu poczta fm>
- To: "'Jean-Michel OLTRA'" <jm oltra libertysurf fr>
- Cc: <gtk-list gnome org>
- Subject: RE: How can I change color of fonts in GTK 1.2
- Date: Wed, 31 Jul 2002 07:44:49 +0200
> -----Original Message-----
> From: Krzysztof Magrel [mailto:xychu poczta fm]
> Sent: Wednesday, July 31, 2002 7:20 AM
> To: 'Jean-Michel OLTRA'
> Cc: 'gtk-list gnome org'
> Subject: RE: How can I change color of fonts in GTK 1.2
>
>
>
>
> > -----Original Message-----
> > From: Jean-Michel OLTRA [mailto:jm oltra libertysurf fr]
> > Sent: Tuesday, July 30, 2002 9:02 PM
> > To: Krzysztof Magrel
> > Subject: Re: How can I change color of fonts in GTK 1.2
> >
> >
> > On Tuesday 30 Jul 2002, Krzysztof Magrel wrote:
> > > It doesn't work for me :((
> >
> > > > Use sth like that ?
> > > >
> > > > GdkColor blanc = {65535, 65535, 65535};
> > > > GtkWidget *label;
> > > >
> > > > label->style = gtk_style_copy(label->style);
> > > > label->style->fg[GTK_STATE_NORMAL] = blanc;
> >
> > Aaargh !
> > What do you want to do ? What kind of widget do you want to
> change the
> I wanna change font's color of normal label (GtkLabel class)
> > font color from ?
> >
> > Did you try to set colors in a rc-file ?
> Yes, I already tried and every colors of fonts are now blue
> :) (I changed entry fg[NORMAL] to "#0000ff")
> I don't know why Your solution doesn't work for me.
> I've it like that: GdkColor color;
>
> GtkWidget *label;
>
> color.red=65535;
> color.green=0;
> color.blue=0;
>
> label=lookup_widget(main_window,"label8");
> label->style=gtk_style_copy(label->style);
> label->style->text[GTK_STATE_NORMAL]=color;
I of course tried also change it with:
label->style->fg[GTK_STATE_NORMAL]=color;
without result....
>
>
> > --
> > jean-michel
> >
> >
> ----------------------------------------------------------------------
> > Zacznij dobrze dzien... >>> http://link.interia.pl/f162e
> >
> >
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]