diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-19 13:28:58 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-19 13:28:58 +0300 |
commit | 81007a2debffebc97c230cd810fb1bf10760180f (patch) | |
tree | 80639ed9d2723b397710cafd3de1a479ef400d02 /src/ui/util.c | |
parent | b131ffbc42d66d7668844f12d7b24ddcf1a5c176 (diff) |
Refactoring Window to split off MainWindow
MainWindow represents (one of) the main windows of the app, while the basic Window will be a used for popups.
Only MainWindow supports split view modes.
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index 01939e66..721aed2d 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -1222,7 +1222,7 @@ static void updateValueInputWidth_(iWidget *dlg) { | |||
1222 | iMin(rootSize.x, iMaxi(iMaxi(100 * gap_UI, title->rect.size.x), prompt->rect.size.x)); | 1222 | iMin(rootSize.x, iMaxi(iMaxi(100 * gap_UI, title->rect.size.x), prompt->rect.size.x)); |
1223 | } | 1223 | } |
1224 | /* Adjust the maximum number of visible lines. */ | 1224 | /* Adjust the maximum number of visible lines. */ |
1225 | int footer = 6 * gap_UI + get_Window()->keyboardHeight; | 1225 | int footer = 6 * gap_UI + get_MainWindow()->keyboardHeight; |
1226 | iWidget *buttons = findChild_Widget(dlg, "dialogbuttons"); | 1226 | iWidget *buttons = findChild_Widget(dlg, "dialogbuttons"); |
1227 | if (buttons) { | 1227 | if (buttons) { |
1228 | footer += height_Widget(buttons); | 1228 | footer += height_Widget(buttons); |