all repos — tint2 @ d49dac2e052b4a4fea99fb5ef6a29f4ffb531a90

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

Tint2conf: read border sides correctly when enabled by default (issue #580)
o9000 mrovi9000@gmail.com
commit

d49dac2e052b4a4fea99fb5ef6a29f4ffb531a90

parent

754a69709994cc64396a37a49259659e015e3c68

1 files changed, 8 insertions(+), 8 deletions(-)

jump to
M src/tint2conf/properties_rw.csrc/tint2conf/properties_rw.c

@@ -943,14 +943,14 @@ background_force_update();

read_border_color_press = 1; } else if (strcmp(key, "border_sides") == 0) { - if (strchr(value, 't') || strchr(value, 'T')) - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_top), 1); - if (strchr(value, 'b') || strchr(value, 'B')) - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_bottom), 1); - if (strchr(value, 'l') || strchr(value, 'L')) - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_left), 1); - if (strchr(value, 'r') || strchr(value, 'R')) - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_right), 1); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_top), + strchr(value, 't') || strchr(value, 'T')); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_bottom), + strchr(value, 'b') || strchr(value, 'B')); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_left), + strchr(value, 'l') || strchr(value, 'L')); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_right), + strchr(value, 'r') || strchr(value, 'R')); background_force_update(); } /* Panel */