Mercurial > hg > xemacs-beta
comparison lwlib/lwlib.c @ 165:5a88923fcbfe r20-3b9
Import from CVS: tag r20-3b9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:44:42 +0200 |
parents | 0132846995bd |
children | 2d532a89d707 |
comparison
equal
deleted
inserted
replaced
164:4e0740e5aab2 | 165:5a88923fcbfe |
---|---|
1251 show_one_widget_busy (Widget w, Boolean flag) | 1251 show_one_widget_busy (Widget w, Boolean flag) |
1252 { | 1252 { |
1253 Pixel foreground = 0; | 1253 Pixel foreground = 0; |
1254 Pixel background = 1; | 1254 Pixel background = 1; |
1255 Widget widget_to_invert = XtNameToWidget (w, "*sheet"); | 1255 Widget widget_to_invert = XtNameToWidget (w, "*sheet"); |
1256 Arg al [2]; | |
1257 | |
1256 if (!widget_to_invert) | 1258 if (!widget_to_invert) |
1257 widget_to_invert = w; | 1259 widget_to_invert = w; |
1258 | 1260 |
1259 XtVaGetValues (widget_to_invert, | 1261 XtSetArg (al [0], XtNforeground, &foreground); |
1260 XtNforeground, &foreground, | 1262 XtSetArg (al [1], XtNbackground, &background); |
1261 XtNbackground, &background, | 1263 XtGetValues (widget_to_invert, al, 2); |
1262 NULL); | 1264 |
1263 XtVaSetValues (widget_to_invert, | 1265 XtSetArg (al [0], XtNforeground, background); |
1264 XtNforeground, background, | 1266 XtSetArg (al [1], XtNbackground, foreground); |
1265 XtNbackground, foreground, | 1267 XtSetValues (widget_to_invert, al, 2); |
1266 NULL); | |
1267 } | 1268 } |
1268 | 1269 |
1269 void | 1270 void |
1270 lw_show_busy (Widget w, Boolean busy) | 1271 lw_show_busy (Widget w, Boolean busy) |
1271 { | 1272 { |