mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
theme: allow negative values for menu overlap
This fixes a regression introduced with:
dcd9b47e5b
This commit is contained in:
parent
f8ed199197
commit
07110d41ff
1 changed files with 2 additions and 4 deletions
|
|
@ -851,12 +851,10 @@ entry(struct theme *theme, const char *key, const char *value)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (match_glob(key, "menu.overlap.x")) {
|
if (match_glob(key, "menu.overlap.x")) {
|
||||||
theme->menu_overlap_x = get_int_if_positive(
|
theme->menu_overlap_x = atoi(value);
|
||||||
value, "menu.overlap.x");
|
|
||||||
}
|
}
|
||||||
if (match_glob(key, "menu.overlap.y")) {
|
if (match_glob(key, "menu.overlap.y")) {
|
||||||
theme->menu_overlap_y = get_int_if_positive(
|
theme->menu_overlap_y = atoi(value);
|
||||||
value, "menu.overlap.y");
|
|
||||||
}
|
}
|
||||||
if (match_glob(key, "menu.width.min")) {
|
if (match_glob(key, "menu.width.min")) {
|
||||||
theme->menu_min_width = get_int_if_positive(
|
theme->menu_min_width = get_int_if_positive(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue