mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
move the SIZE_DEFAULTS() macro to where it belongs to
This commit is contained in:
parent
584d05d2ad
commit
e3e77ce75e
@ -232,11 +232,6 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
|
||||
#define OBJ_IF_ARG(a, n, ...) __OBJ_HEAD(a, n) __OBJ_ARG(__VA_ARGS__) __OBJ_IF; {
|
||||
#define END } } else
|
||||
|
||||
#define SIZE_DEFAULTS(arg) { \
|
||||
obj->a = default_##arg##_width; \
|
||||
obj->b = default_##arg##_height; \
|
||||
}
|
||||
|
||||
#ifdef X11
|
||||
if (s[0] == '#') {
|
||||
obj->type = OBJ_color;
|
||||
|
@ -86,6 +86,12 @@ extern int default_gauge_width;
|
||||
extern int default_gauge_height;
|
||||
#endif
|
||||
|
||||
/* set the obj's default width and height (FIXME: referencing the global obj is evil) */
|
||||
#define SIZE_DEFAULTS(arg) { \
|
||||
obj->a = default_##arg##_width; \
|
||||
obj->b = default_##arg##_height; \
|
||||
}
|
||||
|
||||
/* max number of specials allowed (TODO: use linked list instead) */
|
||||
extern int max_specials;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user