38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
diff -up conky-1.8.0/src/conky.c.truefalse conky-1.8.0/src/conky.c
|
|
--- conky-1.8.0/src/conky.c.truefalse 2010-03-25 21:27:32.000000000 +0100
|
|
+++ conky-1.8.0/src/conky.c 2010-04-01 18:00:48.000000000 +0200
|
|
@@ -4518,13 +4518,13 @@ void setalignment(int* ltext_alignment,
|
|
int a = string_to_alignment(value);
|
|
|
|
if (a <= 0) {
|
|
- if(setbyconffile == true) {
|
|
+ if(setbyconffile == TRUE) {
|
|
CONF_ERR;
|
|
} else NORM_ERR("'%s' is not a alignment setting", value);
|
|
} else {
|
|
*ltext_alignment = a;
|
|
}
|
|
- } else if(setbyconffile == true) {
|
|
+ } else if(setbyconffile == TRUE) {
|
|
CONF_ERR;
|
|
}
|
|
}
|
|
@@ -4573,7 +4573,7 @@ char load_config_file(const char *f)
|
|
}
|
|
}
|
|
CONF("alignment") {
|
|
- setalignment(&text_alignment, window.type, value, f, line, true);
|
|
+ setalignment(&text_alignment, window.type, value, f, line, TRUE);
|
|
}
|
|
CONF("background") {
|
|
fork_to_background = string_to_bool(value);
|
|
@@ -5696,7 +5696,7 @@ void initialisation(int argc, char **arg
|
|
set_first_font(optarg);
|
|
break;
|
|
case 'a':
|
|
- setalignment(&text_alignment, window.type, optarg, NULL, 0, false);
|
|
+ setalignment(&text_alignment, window.type, optarg, NULL, 0, FALSE);
|
|
break;
|
|
|
|
#ifdef OWN_WINDOW
|