summaryrefslogtreecommitdiff
path: root/src/ui/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/root.c')
-rw-r--r--src/ui/root.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/ui/root.c b/src/ui/root.c
index 31176115..5ec63e91 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -1534,19 +1534,10 @@ void createUserInterface_Root(iRoot *d) {
1534 arrangeHeight_WidgetFlag | arrangeHorizontal_WidgetFlag | 1534 arrangeHeight_WidgetFlag | arrangeHorizontal_WidgetFlag |
1535 commandOnClick_WidgetFlag | 1535 commandOnClick_WidgetFlag |
1536 drawBackgroundToBottom_WidgetFlag, iTrue); 1536 drawBackgroundToBottom_WidgetFlag, iTrue);
1537#if defined (iPlatformAndroidMobile)
1538 /* Android has a system-provided back button (or gesture?), or in the toolbar we can have
1539 a different in the place of Back. */
1540 setId_Widget(addChildFlags_Widget(toolBar,
1541 iClob(newLargeIcon_LabelWidget(close_Icon, "tabs.close")),
1542 frameless_WidgetFlag),
1543 "toolbar.close");
1544#else
1545 setId_Widget(addChildFlags_Widget(toolBar, 1537 setId_Widget(addChildFlags_Widget(toolBar,
1546 iClob(newLargeIcon_LabelWidget("", "...")), 1538 iClob(newLargeIcon_LabelWidget("", "...")),
1547 frameless_WidgetFlag), 1539 frameless_WidgetFlag),
1548 "toolbar.action1"); 1540 "toolbar.action1");
1549#endif
1550 setId_Widget(addChildFlags_Widget(toolBar, 1541 setId_Widget(addChildFlags_Widget(toolBar,
1551 iClob(newLargeIcon_LabelWidget("", "...")), 1542 iClob(newLargeIcon_LabelWidget("", "...")),
1552 frameless_WidgetFlag), 1543 frameless_WidgetFlag),
@@ -1638,6 +1629,12 @@ void createUserInterface_Root(iRoot *d) {
1638 { select_Icon " ${menu.selectall}", 0, 0, "input.selectall" }, 1629 { select_Icon " ${menu.selectall}", 0, 0, "input.selectall" },
1639 }, 8); 1630 }, 8);
1640#endif 1631#endif
1632 if (deviceType_App() == phone_AppDeviceType) {
1633 /* Small screen; conserve space by removing the Cancel item. */
1634 iRelease(removeChild_Widget(clipMenu, lastChild_Widget(clipMenu)));
1635 iRelease(removeChild_Widget(clipMenu, lastChild_Widget(clipMenu)));
1636 iRelease(removeChild_Widget(clipMenu, lastChild_Widget(clipMenu)));
1637 }
1641 iWidget *splitMenu = makeMenu_Widget(root, (iMenuItem[]){ 1638 iWidget *splitMenu = makeMenu_Widget(root, (iMenuItem[]){
1642 { "${menu.split.merge}", '1', 0, "ui.split arg:0" }, 1639 { "${menu.split.merge}", '1', 0, "ui.split arg:0" },
1643 { "${menu.split.swap}", SDLK_x, 0, "ui.split swap:1" }, 1640 { "${menu.split.swap}", SDLK_x, 0, "ui.split swap:1" },