Re: Possible problem
Rafal Wierzbicki (rafal@mcss.cas.mcmaster.ca)
Wed, 24 Feb 1999 22:11:39 -0500 (EST)
hi,
What I found out is that Style->font does get updated but the
global gc's do not since:
gcv.font = Style->font.font->fid;
gcv.foreground = Style->colors.fore;
gcv.background = Style->colors.back;
fore_gc = XCreateGC (dpy, window, GCForeground | GCBackground | GCFont,
&gcv);
XDrawString (dpy, window, fore_gc, etc etc);
displays text with the new font but using mystyle_draw_text () does not
(tried with TextStyle 0 too). Should I manually update the global gcs? My
impression was that this was to happen automatically, please help :)
On Tue, 23 Feb 1999, Rafal Wierzbicki wrote:
>
> hello,
>
> I noticed a problem with MyStyles as X properties with WinList,
> it seems that Style->font doesnt get updated when mystyle_get_property
> is called. I tried changing the font for WinList in a look file, hit
> looks->that_new_look and WinList still draws using the old font (and
> it only uses Style->font, no other font-loading functions are called).
> Am I doing something wrong here?
>
> Rafal.
>
>