Fix timeout of fancy status colors
This was trying to retrieve the foreground color of the form created in create_value(). Forms don't have colors, and so this was failing, and update_color() didn't update the color.
This commit is contained in:
committed by
Pasi Kallinen
parent
b56189cfcd
commit
f7bb4eaae8
+3
-1
@@ -1633,8 +1633,10 @@ update_val(struct X_status_value *attr_rec, long new_value)
|
|||||||
}
|
}
|
||||||
attr_rec->turn_count = 0;
|
attr_rec->turn_count = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Widget w = (attr_rec->type == SV_LABEL || attr_rec->type == SV_NAME) ? attr_rec->w
|
||||||
|
: get_value_widget(attr_rec->w);
|
||||||
XtSetArg(args[0], XtNforeground, &attr_rec->default_fg);
|
XtSetArg(args[0], XtNforeground, &attr_rec->default_fg);
|
||||||
XtGetValues(attr_rec->w, args, ONE);
|
XtGetValues(w, args, ONE);
|
||||||
attr_rec->after_init = TRUE;
|
attr_rec->after_init = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user