diff options
-rw-r--r-- | Mailbox.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -230,14 +230,14 @@ WidgetClass mailboxWidgetClass = (WidgetClass) &mailboxClassRec; static GC get_mailbox_gc (MailboxWidget w) { - XtGCMask valuemask; - XGCValues xgcv; - - valuemask = GCForeground | GCBackground | GCFunction | GCGraphicsExposures; - xgcv.foreground = w->mailbox.foreground_pixel; - xgcv.background = w->core.background_pixel; - xgcv.function = GXcopy; - xgcv.graphics_exposures = False; /* this is Bool, not Boolean */ + XtGCMask valuemask + = GCForeground | GCBackground | GCFunction | GCGraphicsExposures; + XGCValues xgcv = { + .foreground = w->mailbox.foreground_pixel, + .background = w->core.background_pixel, + .function = GXcopy, + .graphics_exposures = False /* this is Bool, not Boolean */ + }; return (XtGetGC ((Widget) w, valuemask, &xgcv)); } |