summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-13 14:05:01 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-13 14:05:01 +0200
commit60d5027a36067956a33be592ddb414c0c0a0ac73 (patch)
tree434ada1ae16c9ec8bf590674c0b1e4a1bb38006a /src/ui/window.c
parent5720b8abe62a917d52357d0ec8665a431f55c27e (diff)
Cleanup
Diffstat (limited to 'src/ui/window.c')
-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" },