1
0
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:
Phil Sutter 2009-11-08 16:28:02 +01:00
parent f9036f58a2
commit 9c8805ee7b
2 changed files with 1 additions and 3 deletions

View File

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

View File

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