XtGCMask value_mask;
XmManagerWidget mw = (XmManagerWidget) XtParent(g);
XFontStruct * font;
- Boolean font_rtn;
if (!G__DoUpdate (g))
return;
/* Get normal GC.
*/
- font_rtn = XmeRenderTableGetDefaultFont (G_FontList (g), &font);
- value_mask = GCForeground | GCBackground | GCFont | GCFillStyle;
+ value_mask = GCForeground | GCBackground | GCFillStyle;
+ if (XmeRenderTableGetDefaultFont (G_FontList (g), &font)) {
+ value_mask |= GCFont;
+ values.font = font->fid;
+ }
+
if (G_UseEmbossedText (g))
values.foreground = WhitePixelOfScreen (XtScreen (g));
else
values.foreground = G_Foreground (g);
values.background = G_Background (g);
-
values.fill_style = FillSolid;
- values.font = font->fid;
+
G_NormalGC (g) = XtGetGC ((Widget)mw, value_mask, &values);
/* Get top shadow GC.
/* Get clock hand GC.
*/
-font_rtn = XmeRenderTableGetDefaultFont (G_FontList (g), &font);
-value_mask = GCForeground | GCFont | GCFillStyle;
+
+value_mask = GCForeground | GCFillStyle;
+
+if (XmeRenderTableGetDefaultFont (G_FontList (g), &font)) {
+ value_mask |= GCFont;
+ values.font = font->fid;
+}
if (((G_PixmapForeground (g) == WhitePixelOfScreen (XtScreen (g))) &&
(G_PixmapBackground (g) == BlackPixelOfScreen (XtScreen (g)))) ||
else
values.foreground = mw->manager.top_shadow_color;
values.fill_style = FillSolid;
-values.font = font->fid;
+
G_ClockHandGC (g) = XtGetGC ((Widget) mw, value_mask, &values);