1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-30 05:59:07 +00:00

Fix building without X11

This commit is contained in:
Nikolas Garofil 2009-12-01 14:07:22 +01:00
parent a2c9ac648d
commit e24bc153b3
2 changed files with 4 additions and 0 deletions

View File

@ -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));
}

View File

@ -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;