mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 12:27:52 +00:00
goto, tab: convert to callbacks.print
This commit is contained in:
parent
9c8805ee7b
commit
4927eb85a2
@ -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);
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user