mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-05 05:28:32 +00:00
shadecolor: convert to callbacks.print
This commit is contained in:
parent
f9036f58a2
commit
9c8805ee7b
@ -1469,9 +1469,6 @@ void generate_text_internal(char *p, int p_max_size,
|
||||
snprintf(p, p_max_size, "%s", obj->data.s);
|
||||
}
|
||||
#ifdef X11
|
||||
OBJ(shadecolor) {
|
||||
new_bg(obj, p, p_max_size);
|
||||
}
|
||||
OBJ(stippled_hr) {
|
||||
new_stippled_hr(obj, p, p_max_size);
|
||||
}
|
||||
|
@ -921,6 +921,7 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
|
||||
END OBJ(shadecolor, 0)
|
||||
#ifdef X11
|
||||
obj->data.l = arg ? get_x11_color(arg) : default_bg_color;
|
||||
obj->callbacks.print = &new_bg;
|
||||
#endif /* X11 */
|
||||
END OBJ(outlinecolor, 0)
|
||||
#ifdef X11
|
||||
|
Loading…
x
Reference in New Issue
Block a user