mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 12:10:03 +00:00
if_mixer_mute: convert to callbacks.iftest
This commit is contained in:
parent
5249c9da04
commit
482f2d50b4
@ -1013,12 +1013,6 @@ void generate_text_internal(char *p, int p_max_size,
|
||||
new_graph(obj, p, p_max_size, cur->memmax ? (cur->mem * 100.0) / (cur->memmax) : 0.0);
|
||||
}
|
||||
#endif /* X11 */
|
||||
/* mixer stuff */
|
||||
OBJ(if_mixer_mute) {
|
||||
if (!check_mixer_muted(obj)) {
|
||||
DO_JUMP;
|
||||
}
|
||||
}
|
||||
#ifdef X11
|
||||
#define NOT_IN_X "Not running in X"
|
||||
OBJ(monitor) {
|
||||
|
@ -795,6 +795,7 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
|
||||
obj->callbacks.print = &print_mixerr_bar;
|
||||
END OBJ_IF(if_mixer_mute, 0)
|
||||
parse_mixer_arg(obj, arg);
|
||||
obj->callbacks.iftest = &check_mixer_muted;
|
||||
#ifdef X11
|
||||
END OBJ(monitor, &update_x11info)
|
||||
END OBJ(monitor_number, &update_x11info)
|
||||
|
Loading…
Reference in New Issue
Block a user