[gtkada] Set_Foreground

Preben Randhol randhol at pvv.org
Fri Jul 18 18:20:19 CEST 2003


Emmanuel Briot <briot at act-europe.fr> wrote on 18/07/2003 (18:16) :
> > If it is a label, do this instead:
> > 
> >    Gtk_New (My_Label, "<span color=""red"">My red label</span>");
> >    Set_Use_Markup (My_Label, True);
> 
> I didn't pay attention to the fact that you had a label.  You need to
> put in an Gtk_Event_Box instead, to have an actual GdkWindow below.

For the foreground? I thought it only applied for the background. Anyway
I think it is easier an better to just use the Pango markup if it is
only the foreground that is being changed.

-- 
Preben Randhol -------------- http://www.pvv.org/~randhol/Ada95 --
                 «For me, Ada95 puts back the joy in programming.»



More information about the gtkada mailing list