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:
parent
95b92d6cff
commit
ffec9dd50c
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user