diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-22 21:35:10 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-22 21:35:10 +0200 |
commit | 90443011c98a6dc8340d2c84f1e538c7a98327f2 (patch) | |
tree | 94e1522758d7b83be08144ae4bac54853fd3a277 /src/ui/widget.c | |
parent | 1174f2e9318a58602baccdfb3e2465645d263601 (diff) |
Dialog buttons on the right
Follow typical GUI conventions by placing dialog buttons on the right edge. This leaves space for additional actions on the left.
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index c0e2feda..bab35d8d 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -369,8 +369,8 @@ void arrange_Widget(iWidget *d) { | |||
369 | avail = divi_I2(max_I2(zero_I2(), avail), expCount); | 369 | avail = divi_I2(max_I2(zero_I2(), avail), expCount); |
370 | iForEach(ObjectList, j, d->children) { | 370 | iForEach(ObjectList, j, d->children) { |
371 | iWidget *child = as_Widget(j.object); | 371 | iWidget *child = as_Widget(j.object); |
372 | if (isCollapsed_Widget_(child)) continue; | 372 | if (isCollapsed_Widget_(child) || |
373 | if (child->flags & fixedPosition_WidgetFlag) { | 373 | child->flags & (parentCannotResize_WidgetFlag | fixedPosition_WidgetFlag)) { |
374 | continue; | 374 | continue; |
375 | } | 375 | } |
376 | if (child->flags & expand_WidgetFlag) { | 376 | if (child->flags & expand_WidgetFlag) { |
@@ -405,7 +405,7 @@ void arrange_Widget(iWidget *d) { | |||
405 | } | 405 | } |
406 | iForEach(ObjectList, i, d->children) { | 406 | iForEach(ObjectList, i, d->children) { |
407 | iWidget *child = as_Widget(i.object); | 407 | iWidget *child = as_Widget(i.object); |
408 | if (!isCollapsed_Widget_(child)) { | 408 | if (!isCollapsed_Widget_(child) && ~child->flags & parentCannotResize_WidgetFlag) { |
409 | if (dirs.x) setWidth_Widget_(child, childSize.x); | 409 | if (dirs.x) setWidth_Widget_(child, childSize.x); |
410 | if (dirs.y) setHeight_Widget_(child, childSize.y); | 410 | if (dirs.y) setHeight_Widget_(child, childSize.y); |
411 | } | 411 | } |