1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-15 19:56:55 +00:00

font: convert to callbacks.print

This commit is contained in:
Phil Sutter 2009-11-29 19:43:27 +01:00
parent 95b92d6cff
commit ffec9dd50c
2 changed files with 1 additions and 5 deletions

View File

@ -789,11 +789,6 @@ void generate_text_internal(char *p, int p_max_size,
switch (obj->type) {
default:
NORM_ERR("not implemented obj type %d", obj->type);
#ifdef X11
OBJ(font) {
new_font(obj, p, p_max_size);
}
#endif /* X11 */
OBJ(text) {
snprintf(p, p_max_size, "%s", obj->data.s);
}

View File

@ -522,6 +522,7 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
#ifdef X11
END OBJ(font, 0)
scan_font(obj, arg);
obj->callbacks.print = &new_font;
obj->callbacks.free = &gen_free_opaque;
#endif /* X11 */
END OBJ(conky_version, 0)