Warn on primary_monitor_first
This commit is contained in:
13
src/config.c
13
src/config.c
@@ -578,7 +578,7 @@ void add_entry(char *key, char *value)
|
|||||||
bat2_font_desc = pango_font_description_from_string(value);
|
bat2_font_desc = pango_font_description_from_string(value);
|
||||||
bat2_has_font = TRUE;
|
bat2_has_font = TRUE;
|
||||||
#endif
|
#endif
|
||||||
} else if (strcmp (key, "bat1_format") == 0) {
|
} else if (strcmp(key, "bat1_format") == 0) {
|
||||||
#ifdef ENABLE_BATTERY
|
#ifdef ENABLE_BATTERY
|
||||||
if (strlen(value) > 0) {
|
if (strlen(value) > 0) {
|
||||||
free(bat1_format);
|
free(bat1_format);
|
||||||
@@ -586,7 +586,7 @@ void add_entry(char *key, char *value)
|
|||||||
battery_enabled = 1;
|
battery_enabled = 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else if (strcmp (key, "bat2_format") == 0) {
|
} else if (strcmp(key, "bat2_format") == 0) {
|
||||||
#ifdef ENABLE_BATTERY
|
#ifdef ENABLE_BATTERY
|
||||||
if (strlen(value) > 0) {
|
if (strlen(value) > 0) {
|
||||||
free(bat2_format);
|
free(bat2_format);
|
||||||
@@ -1287,8 +1287,13 @@ void add_entry(char *key, char *value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else
|
else if (strcmp(key, "primary_monitor_first") == 0) {
|
||||||
fprintf(stderr, "tint2 : invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key);
|
fprintf(stderr,
|
||||||
|
"tint2: deprecated config option \"%s\"\n"
|
||||||
|
" Please see the documentation regarding the alternatives.\n",
|
||||||
|
key);
|
||||||
|
} else
|
||||||
|
fprintf(stderr, "tint2: invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key);
|
||||||
|
|
||||||
if (value1)
|
if (value1)
|
||||||
free(value1);
|
free(value1);
|
||||||
|
|||||||
Reference in New Issue
Block a user