mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +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));
|
||||
} else if (obj->callbacks.gaugeval) {
|
||||
new_gauge(obj, p, p_max_size, (*obj->callbacks.gaugeval)(obj));
|
||||
#ifdef X11
|
||||
} else if (obj->callbacks.graphval) {
|
||||
new_graph(obj, p, p_max_size, (*obj->callbacks.graphval)(obj));
|
||||
#endif /* X11 */
|
||||
} else if (obj->callbacks.percentage) {
|
||||
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)
|
||||
init_fs(obj, arg);
|
||||
obj->callbacks.print = &print_fs_used;
|
||||
#ifdef X11
|
||||
END OBJ(hr, 0)
|
||||
obj->data.l = arg ? atoi(arg) : 1;
|
||||
obj->callbacks.print = &new_hr;
|
||||
#endif /* X11 */
|
||||
END OBJ(nameserver, &update_dns_data)
|
||||
parse_nameserver_arg(obj, arg);
|
||||
obj->callbacks.print = &print_nameserver;
|
||||
|
Loading…
Reference in New Issue
Block a user