mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-29 01:58:26 +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) {
|
switch (obj->type) {
|
||||||
default:
|
default:
|
||||||
NORM_ERR("not implemented obj type %d", obj->type);
|
NORM_ERR("not implemented obj type %d", obj->type);
|
||||||
#ifdef X11
|
|
||||||
OBJ(font) {
|
|
||||||
new_font(obj, p, p_max_size);
|
|
||||||
}
|
|
||||||
#endif /* X11 */
|
|
||||||
OBJ(text) {
|
OBJ(text) {
|
||||||
snprintf(p, p_max_size, "%s", obj->data.s);
|
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
|
#ifdef X11
|
||||||
END OBJ(font, 0)
|
END OBJ(font, 0)
|
||||||
scan_font(obj, arg);
|
scan_font(obj, arg);
|
||||||
|
obj->callbacks.print = &new_font;
|
||||||
obj->callbacks.free = &gen_free_opaque;
|
obj->callbacks.free = &gen_free_opaque;
|
||||||
#endif /* X11 */
|
#endif /* X11 */
|
||||||
END OBJ(conky_version, 0)
|
END OBJ(conky_version, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user