Tint2conf: read border sides correctly when enabled by default (issue #580)
This commit is contained in:
@@ -943,14 +943,14 @@ void add_entry(char *key, char *value)
|
|||||||
read_border_color_press = 1;
|
read_border_color_press = 1;
|
||||||
}
|
}
|
||||||
else if (strcmp(key, "border_sides") == 0) {
|
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),
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_top), 1);
|
strchr(value, 't') || strchr(value, 'T'));
|
||||||
if (strchr(value, 'b') || strchr(value, 'B'))
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_bottom),
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_bottom), 1);
|
strchr(value, 'b') || strchr(value, 'B'));
|
||||||
if (strchr(value, 'l') || strchr(value, 'L'))
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_left),
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_left), 1);
|
strchr(value, 'l') || strchr(value, 'L'));
|
||||||
if (strchr(value, 'r') || strchr(value, 'R'))
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_right),
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(background_border_sides_right), 1);
|
strchr(value, 'r') || strchr(value, 'R'));
|
||||||
background_force_update();
|
background_force_update();
|
||||||
}
|
}
|
||||||
/* Panel */
|
/* Panel */
|
||||||
|
|||||||
Reference in New Issue
Block a user