1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

goto, tab: convert to callbacks.print

This commit is contained in:
Phil Sutter 2009-11-08 16:54:30 +01:00
parent 9c8805ee7b
commit 4927eb85a2
2 changed files with 2 additions and 6 deletions

View File

@ -981,12 +981,6 @@ void generate_text_internal(char *p, int p_max_size,
OBJ(fs_used_perc) {
print_fs_perc(obj, 0, p, p_max_size);
}
OBJ(goto) {
new_goto(obj, p, p_max_size);
}
OBJ(tab) {
new_tab(obj, p, p_max_size);
}
#ifdef X11
OBJ(hr) {
new_hr(obj, p, p_max_size);

View File

@ -605,9 +605,11 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
obj->data.l = arg ? atoi(arg) : 1;
END OBJ_ARG(goto, 0, "goto needs arguments")
obj->data.l = atoi(arg);
obj->callbacks.print = &new_goto;
#ifdef X11
END OBJ(tab, 0)
scan_tab(obj, arg);
obj->callbacks.print = &new_tab;
#endif /* X11 */
#ifdef __linux__
END OBJ_ARG(i2c, 0, "i2c needs arguments")