mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-29 05:12:41 +00:00
Fix building without X11
This commit is contained in:
parent
a2c9ac648d
commit
e24bc153b3
@ -754,8 +754,10 @@ void generate_text_internal(char *p, int p_max_size, struct text_object root)
|
|||||||
new_bar(obj, p, p_max_size, (*obj->callbacks.barval)(obj));
|
new_bar(obj, p, p_max_size, (*obj->callbacks.barval)(obj));
|
||||||
} else if (obj->callbacks.gaugeval) {
|
} else if (obj->callbacks.gaugeval) {
|
||||||
new_gauge(obj, p, p_max_size, (*obj->callbacks.gaugeval)(obj));
|
new_gauge(obj, p, p_max_size, (*obj->callbacks.gaugeval)(obj));
|
||||||
|
#ifdef X11
|
||||||
} else if (obj->callbacks.graphval) {
|
} else if (obj->callbacks.graphval) {
|
||||||
new_graph(obj, p, p_max_size, (*obj->callbacks.graphval)(obj));
|
new_graph(obj, p, p_max_size, (*obj->callbacks.graphval)(obj));
|
||||||
|
#endif /* X11 */
|
||||||
} else if (obj->callbacks.percentage) {
|
} else if (obj->callbacks.percentage) {
|
||||||
percent_print(p, p_max_size, (*obj->callbacks.percentage)(obj));
|
percent_print(p, p_max_size, (*obj->callbacks.percentage)(obj));
|
||||||
}
|
}
|
||||||
|
@ -634,9 +634,11 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
|
|||||||
END OBJ(fs_used, &update_fs_stats)
|
END OBJ(fs_used, &update_fs_stats)
|
||||||
init_fs(obj, arg);
|
init_fs(obj, arg);
|
||||||
obj->callbacks.print = &print_fs_used;
|
obj->callbacks.print = &print_fs_used;
|
||||||
|
#ifdef X11
|
||||||
END OBJ(hr, 0)
|
END OBJ(hr, 0)
|
||||||
obj->data.l = arg ? atoi(arg) : 1;
|
obj->data.l = arg ? atoi(arg) : 1;
|
||||||
obj->callbacks.print = &new_hr;
|
obj->callbacks.print = &new_hr;
|
||||||
|
#endif /* X11 */
|
||||||
END OBJ(nameserver, &update_dns_data)
|
END OBJ(nameserver, &update_dns_data)
|
||||||
parse_nameserver_arg(obj, arg);
|
parse_nameserver_arg(obj, arg);
|
||||||
obj->callbacks.print = &print_nameserver;
|
obj->callbacks.print = &print_nameserver;
|
||||||
|
Loading…
Reference in New Issue
Block a user