summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-05 23:07:54 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-05 23:07:54 +0300
commit81d4d93d5e258e4808f27648c6c9d2157ac19c4e (patch)
tree399e0ef0d5c86fa6ff34b39a4a9b40617e1bda33 /src/ui/util.c
parentbbbd304ce58b12c0c9df630b4cf28ee15e1e1a68 (diff)
Mobile: Fixing the build post-1.3
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index cdc58154..5656c2c0 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1020,7 +1020,7 @@ static void updateSheetPanelMetrics_(iWidget *sheet) {
1020 navi->rect.pos = init_I2(left, top); 1020 navi->rect.pos = init_I2(left, top);
1021 iConstForEach(PtrArray, i, findChildren_Widget(sheet, "panel.toppad")) { 1021 iConstForEach(PtrArray, i, findChildren_Widget(sheet, "panel.toppad")) {
1022 iWidget *pad = *i.value; 1022 iWidget *pad = *i.value;
1023 setSize_Widget(pad, init1_I2(naviHeight)); 1023 setFixedSize_Widget(pad, init1_I2(naviHeight));
1024 } 1024 }
1025#endif 1025#endif
1026 setFixedSize_Widget(navi, init_I2(-1, naviHeight)); 1026 setFixedSize_Widget(navi, init_I2(-1, naviHeight));
@@ -1916,7 +1916,10 @@ void updatePreferencesLayout_Widget(iWidget *prefs) {
1916 as_Widget(input)->rect.size.x = 0; 1916 as_Widget(input)->rect.size.x = 0;
1917 } 1917 }
1918 } 1918 }
1919 as_Widget(findChild_Widget(prefs, "bindings"))->rect.size.x = 0; 1919 iWidget *bindings = findChild_Widget(prefs, "bindings");
1920 if (bindings) {
1921 bindings->rect.size.x = 0;
1922 }
1920 resizeToLargestPage_Widget(tabs); 1923 resizeToLargestPage_Widget(tabs);
1921 arrange_Widget(prefs); 1924 arrange_Widget(prefs);
1922 iForIndices(i, inputIds) { 1925 iForIndices(i, inputIds) {