fix another problem when traditional X11 fonts are unavailable
svn: r5708
This commit is contained in:
parent
2580d71781
commit
11e8aa1f55
|
@ -103,8 +103,11 @@ static void make_textgc(self)Widget self;
|
||||||
if (((XfwfGroupWidget)self)->xfwfGroup.textgc != NULL) XtReleaseGC(self, ((XfwfGroupWidget)self)->xfwfGroup.textgc);
|
if (((XfwfGroupWidget)self)->xfwfGroup.textgc != NULL) XtReleaseGC(self, ((XfwfGroupWidget)self)->xfwfGroup.textgc);
|
||||||
values.background = ((XfwfGroupWidget)self)->core.background_pixel;
|
values.background = ((XfwfGroupWidget)self)->core.background_pixel;
|
||||||
values.foreground = ((XfwfGroupWidget)self)->xfwfGroup.foreground;
|
values.foreground = ((XfwfGroupWidget)self)->xfwfGroup.foreground;
|
||||||
values.font = ((XfwfGroupWidget)self)->xfwfGroup.font->fid;
|
|
||||||
mask = GCFont | GCBackground | GCForeground;
|
mask = GCFont | GCBackground | GCForeground;
|
||||||
|
if (((XfwfGroupWidget)self)->xfwfGroup.font) {
|
||||||
|
values.font = ((XfwfGroupWidget)self)->xfwfGroup.font->fid;
|
||||||
|
mask |= GCFont;
|
||||||
|
}
|
||||||
((XfwfGroupWidget)self)->xfwfGroup.textgc = XtGetGC(self, mask, &values);
|
((XfwfGroupWidget)self)->xfwfGroup.textgc = XtGetGC(self, mask, &values);
|
||||||
}
|
}
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
@ -275,7 +278,7 @@ XfwfGroupClassRec xfwfGroupClassRec = {
|
||||||
/* num_resources */ 8,
|
/* num_resources */ 8,
|
||||||
/* xrm_class */ NULLQUARK,
|
/* xrm_class */ NULLQUARK,
|
||||||
/* compres_motion */ True ,
|
/* compres_motion */ True ,
|
||||||
/* compress_exposure */ XtExposeCompressMultiple ,
|
/* compress_exposure */ XtExposeCompressMaximal ,
|
||||||
/* compress_enterleave */ True ,
|
/* compress_enterleave */ True ,
|
||||||
/* visible_interest */ False ,
|
/* visible_interest */ False ,
|
||||||
/* destroy */ destroy,
|
/* destroy */ destroy,
|
||||||
|
|
|
@ -274,8 +274,11 @@ current value of the Group's |selection| resource.
|
||||||
if ($textgc != NULL) XtReleaseGC($, $textgc);
|
if ($textgc != NULL) XtReleaseGC($, $textgc);
|
||||||
values.background = $background_pixel;
|
values.background = $background_pixel;
|
||||||
values.foreground = $foreground;
|
values.foreground = $foreground;
|
||||||
values.font = $font->fid;
|
|
||||||
mask = GCFont | GCBackground | GCForeground;
|
mask = GCFont | GCBackground | GCForeground;
|
||||||
|
if ($font) {
|
||||||
|
values.font = $font->fid;
|
||||||
|
mask |= GCFont;
|
||||||
|
}
|
||||||
$textgc = XtGetGC($, mask, &values);
|
$textgc = XtGetGC($, mask, &values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user