I believe I just fixed the problem. Could you either update from CVS and check, or apply this fix to Xm-2.1/FontList.c ?
***************
*** 50,55 ****
--- 50,56 ----
memset(r, 0, sizeof(struct __XmRenditionRec));
r->count = 1; /* This is a usage count, initialise to
1. */
+ r->rendition_foreground = r->rendition_background =
XmAS_IS; /* Danny HACK */
#ifdef DEBUG_POINTERS
DEBUGOUT(_LtDebug(__FILE__, NULL, "_XmFontListEntryCreate %p\n",
r));
***************
*** 352,357 ****
--- 353,360 ----
XmFontList newFontList;
int i;
+ DEBUGOUT(_LtDebug(__FILE__, NULL, "XmFontListCopy(dpy %p, fl %
p)\n",
+ fontlist->dpy, fontlist));
#ifdef DEBUG_POINTERS
if (fontlist->count > 10) {
DEBUGOUT(_LtDebug(__FILE__, NULL, "XmFontListCopy(%p)
count %d !!\n",
Danny
CouOn Fri, 2005-06-24 at 09:25 +0000, w.szukalski wrote:
> Could LABEL handling be buggy?
>
> Example 1: 'lesstif-0.94.4/test/Xm/textf/test2.c'
>
> In 'activate_callback()' I made the following change:
>
> XtVaSetValues(field,
> XmNfontList, fl,
> XtVaTypedArg, XmNbackground, XmRString, "yellow",
> strlen("yellow"),
> XtVaTypedArg, XmNforeground, XmRString, "blue",
> strlen("red"),
> NULL);
>
> The result is as expected: blue text on yellow background.
>
> Example 2: 'lesstif-0.94.4/test/Xm/label/test1.c'
>
> In 'main()' I made the following change:
>
> one = XtVaCreateManagedWidget("One",
> xmLabelWidgetClass, toplevel,
> XmNfontList, fontlist,
> XmNlabelString, xmstr,
> XtVaTypedArg, XmNbackground, XmRString, "yellow",
> strlen("yellow"),
> XtVaTypedArg, XmNforeground, XmRString, "blue",
> strlen("blue"),
> XmNacceleratorText, xmstr3,
> NULL);
>
> LESSTIF shows a black text on a yellow background.
> MOTIF shows a blue text on a yellow background.
>
> winfried
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opÌk
> _______________________________________________
> Lesstif-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lesstif-discuss
>
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
signature.asc
Description: This is a digitally signed message part

