summaryrefslogtreecommitdiff
path: root/src/ui/mobile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/mobile.c')
-rw-r--r--src/ui/mobile.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ui/mobile.c b/src/ui/mobile.c
index 5382cbce..ab282a86 100644
--- a/src/ui/mobile.c
+++ b/src/ui/mobile.c
@@ -180,13 +180,16 @@ size_t currentPanelIndex_Mobile(const iWidget *panels) {
180 return iInvalidPos; 180 return iInvalidPos;
181} 181}
182 182
183iWidget *panel_Mobile(const iWidget *panels, size_t index) {
184 return child_Widget(findChild_Widget(panels, "detailstack"), index);
185}
186
183static iBool topPanelHandler_(iWidget *topPanel, const char *cmd) { 187static iBool topPanelHandler_(iWidget *topPanel, const char *cmd) {
184 const iBool isPortrait = !isSideBySideLayout_(); 188 const iBool isPortrait = !isSideBySideLayout_();
185 if (equal_Command(cmd, "panel.open")) { 189 if (equal_Command(cmd, "panel.open")) {
186 iWidget *button = pointer_Command(cmd); 190 /* This command is sent by the button that opens the panel. */
191 iWidget *button = pointer_Command(cmd);
187 iWidget *panel = userData_Object(button); 192 iWidget *panel = userData_Object(button);
188// openMenu_Widget(panel, innerToWindow_Widget(panel, zero_I2()));
189// setFlags_Widget(panel, hidden_WidgetFlag, iFalse);
190 unselectAllPanelButtons_(topPanel); 193 unselectAllPanelButtons_(topPanel);
191 int panelIndex = -1; 194 int panelIndex = -1;
192 size_t childIndex = 0; 195 size_t childIndex = 0;
@@ -208,8 +211,6 @@ static iBool topPanelHandler_(iWidget *topPanel, const char *cmd) {
208 setText_LabelWidget(detailTitle, text_LabelWidget((iLabelWidget *) findTitleLabel_(panel))); 211 setText_LabelWidget(detailTitle, text_LabelWidget((iLabelWidget *) findTitleLabel_(panel)));
209 setFlags_Widget(button, selected_WidgetFlag, iTrue); 212 setFlags_Widget(button, selected_WidgetFlag, iTrue);
210 postCommand_Widget(topPanel, "panel.changed arg:%d", panelIndex); 213 postCommand_Widget(topPanel, "panel.changed arg:%d", panelIndex);
211 //printTree_Widget(findDetailStack_(topPanel));
212// updateVisible_ListWidget(findChild_Widget(findDetailStack_(topPanel), "certlist"));
213 updateCertListHeight_(findDetailStack_(topPanel)); 214 updateCertListHeight_(findDetailStack_(topPanel));
214 return iTrue; 215 return iTrue;
215 } 216 }