summaryrefslogtreecommitdiff
path: root/src/ui/mobile.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-14 19:55:20 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-14 19:55:20 +0300
commit5119a72481a2c752972470ea7b488a5c9e58b720 (patch)
tree11c7ed98a7ba49b300b07585ad497720d8feb4ed /src/ui/mobile.c
parentf68cc75e67cc7504622d55d473c192977957f346 (diff)
UploadWidget: Identity selection (mobile)
Diffstat (limited to 'src/ui/mobile.c')
-rw-r--r--src/ui/mobile.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/mobile.c b/src/ui/mobile.c
index 459e9ce7..05e88815 100644
--- a/src/ui/mobile.c
+++ b/src/ui/mobile.c
@@ -156,6 +156,18 @@ static iBool mainDetailSplitHandler_(iWidget *mainDetailSplit, const char *cmd)
156 return iFalse; 156 return iFalse;
157} 157}
158 158
159size_t currentPanelIndex_Mobile(const iWidget *panels) {
160 size_t index = 0;
161 iConstForEach(ObjectList, i, children_Widget(findChild_Widget(panels, "detailstack"))) {
162 const iWidget *child = i.object;
163 if (isVisible_Widget(child)) {
164 return index;
165 }
166 index++;
167 }
168 return iInvalidPos;
169}
170
159static iBool topPanelHandler_(iWidget *topPanel, const char *cmd) { 171static iBool topPanelHandler_(iWidget *topPanel, const char *cmd) {
160 const iBool isPortrait = !isSideBySideLayout_(); 172 const iBool isPortrait = !isSideBySideLayout_();
161 if (equal_Command(cmd, "panel.open")) { 173 if (equal_Command(cmd, "panel.open")) {