MCPcopy Create free account
hub / github.com/NetHack/NetHack / set_widths

Function set_widths

win/X11/winstat.c:2270–2288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2268}
2269
2270static void
2271set_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
2290static Widget
2291init_column(

Callers 2

init_columnFunction · 0.85
fixup_cond_widthsFunction · 0.85

Calls 3

set_name_widthFunction · 0.85
set_value_widthFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected