| 1744 | } |
| 1745 | |
| 1746 | RESTORE_WARNING_FORMAT_NONLITERAL |
| 1747 | |
| 1748 | /* overloaded condition is being cleared without going through update_val() |
| 1749 | so that an alternate can be shown; put this one back to default settings */ |
| 1750 | static void |
| 1751 | skip_cond_val(struct X_status_value *sv) |
| 1752 | { |
| 1753 | sv->last_value = 0L; /* Off */ |
| 1754 | if (sv->set) { |
| 1755 | /* if condition was highlighted and the alternate value has |
| 1756 | also requested to be highlighted, it used its own copy of |
| 1757 | 'set' but the same widget so the highlighting got toggled |
| 1758 | off; this will turn in back on in that exceptional case */ |
| 1759 | hilight_label(sv->w); |
| 1760 | sv->set = FALSE; |
| 1761 | } |
| 1762 | } |
| 1763 | |
| 1764 | static void |
| 1765 | update_color(struct X_status_value *sv, int color) |
no test coverage detected