all repos — tint2 @ 61c61c8844784c4ce5eb9f45c6e856648f0fca66

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Warn on primary_monitor_first
o9000 mrovi9000@gmail.com
commit

61c61c8844784c4ce5eb9f45c6e856648f0fca66

parent

120207f1f98a5943736941176f09ce975c0b4f11

1 files changed, 9 insertions(+), 4 deletions(-)

jump to
M src/config.csrc/config.c

@@ -578,7 +578,7 @@ #ifdef ENABLE_BATTERY

bat2_font_desc = pango_font_description_from_string(value); bat2_has_font = TRUE; #endif - } else if (strcmp (key, "bat1_format") == 0) { + } else if (strcmp(key, "bat1_format") == 0) { #ifdef ENABLE_BATTERY if (strlen(value) > 0) { free(bat1_format);

@@ -586,7 +586,7 @@ bat1_format = strdup(value);

battery_enabled = 1; } #endif - } else if (strcmp (key, "bat2_format") == 0) { + } else if (strcmp(key, "bat2_format") == 0) { #ifdef ENABLE_BATTERY if (strlen(value) > 0) { free(bat2_format);

@@ -1287,8 +1287,13 @@ }

} } #endif - else - fprintf(stderr, "tint2 : invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key); + else if (strcmp(key, "primary_monitor_first") == 0) { + 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) free(value1);