summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/window.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index d896ac21..d8d0b3ea 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1145,21 +1145,24 @@ static void setupUserInterface_Window(iWindow *d) {
1145#endif 1145#endif
1146 updatePadding_Window_(d); 1146 updatePadding_Window_(d);
1147 /* Global context menus. */ { 1147 /* Global context menus. */ {
1148 iWidget *tabsMenu = makeMenu_Widget(d->root, 1148 iWidget *tabsMenu = makeMenu_Widget(
1149 (iMenuItem[]){ 1149 d->root,
1150 { close_Icon " Close Tab", 0, 0, "tabs.close" }, 1150 (iMenuItem[]){
1151 { copy_Icon " Duplicate Tab", 0, 0, "tabs.new duplicate:1" }, 1151 { close_Icon " Close Tab", 0, 0, "tabs.close" },
1152 { "---", 0, 0, NULL }, 1152 { copy_Icon " Duplicate Tab", 0, 0, "tabs.new duplicate:1" },
1153 { "Close Other Tabs", 0, 0, "tabs.close toleft:1 toright:1" }, 1153 { "---", 0, 0, NULL },
1154 { barLeftArrow_Icon " Close Tabs To Left", 0, 0, "tabs.close toleft:1" }, 1154 { "Close Other Tabs", 0, 0, "tabs.close toleft:1 toright:1" },
1155 { barRightArrow_Icon " Close Tabs To Right", 0, 0, "tabs.close toright:1" }, 1155 { barLeftArrow_Icon " Close Tabs To Left", 0, 0, "tabs.close toleft:1" },
1156 }, 1156 { barRightArrow_Icon " Close Tabs To Right", 0, 0, "tabs.close toright:1" },
1157 6); 1157 },
1158 iWidget *barMenu = makeMenu_Widget(d->root, 1158 6);
1159 (iMenuItem[]) { 1159 iWidget *barMenu =
1160 { leftHalf_Icon " Toggle Left Sidebar", 0, 0, "sidebar.toggle" }, 1160 makeMenu_Widget(d->root,
1161 { rightHalf_Icon " Toggle Right Sidebar", 0, 0, "sidebar2.toggle" }, 1161 (iMenuItem[]){
1162 }, deviceType_App() == phone_AppDeviceType ? 1 : 2); 1162 { leftHalf_Icon " Toggle Left Sidebar", 0, 0, "sidebar.toggle" },
1163 { rightHalf_Icon " Toggle Right Sidebar", 0, 0, "sidebar2.toggle" },
1164 },
1165 deviceType_App() == phone_AppDeviceType ? 1 : 2);
1163 iWidget *clipMenu = makeMenu_Widget(d->root, 1166 iWidget *clipMenu = makeMenu_Widget(d->root,
1164 (iMenuItem[]){ 1167 (iMenuItem[]){
1165 { scissor_Icon " Cut", 0, 0, "input.copy cut:1" }, 1168 { scissor_Icon " Cut", 0, 0, "input.copy cut:1" },