| 2268 | } |
| 2269 | |
| 2270 | static void |
| 2271 | set_widths(struct X_status_value *sv, int width1, int width2) |
| 2272 | { |
| 2273 | Arg args[1]; |
| 2274 | |
| 2275 | switch (sv->type) { |
| 2276 | case SV_VALUE: |
| 2277 | set_name_width(sv->w, width1); |
| 2278 | set_value_width(sv->w, width2); |
| 2279 | break; |
| 2280 | case SV_LABEL: |
| 2281 | case SV_NAME: |
| 2282 | XtSetArg(args[0], XtNwidth, (width1 + width2)); |
| 2283 | XtSetValues(sv->w, args, ONE); |
| 2284 | break; |
| 2285 | default: |
| 2286 | panic("set_widths: unknown type %d", sv->type); |
| 2287 | } |
| 2288 | } |
| 2289 | |
| 2290 | static Widget |
| 2291 | init_column( |
no test coverage detected