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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/root.c b/src/ui/root.c
index 2eca982c..a97c8d49 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -885,7 +885,7 @@ void updateMetrics_Root(iRoot *d) {
885} 885}
886 886
887void createUserInterface_Root(iRoot *d) { 887void createUserInterface_Root(iRoot *d) {
888 iWidget *root = d->widget = new_Widget(); 888 iWidget *root = d->widget = new_Widget();
889 iAssert(root->root == d); 889 iAssert(root->root == d);
890 setId_Widget(root, "root"); 890 setId_Widget(root, "root");
891 /* Children of root cover the entire window. */ 891 /* Children of root cover the entire window. */
@@ -1238,15 +1238,15 @@ void createUserInterface_Root(iRoot *d) {
1238 }, 1238 },
1239 4); 1239 4);
1240 iWidget *splitMenu = makeMenu_Widget(root, (iMenuItem[]){ 1240 iWidget *splitMenu = makeMenu_Widget(root, (iMenuItem[]){
1241 { "Single Frame", '1', 0, "ui.frames arg:0" }, 1241 { "Single Frame", '1', 0, "ui.split arg:0" },
1242 { "---", 0, 0, NULL }, 1242 { "---", 0, 0, NULL },
1243 { "Horizontal", '2', 0, "ui.frames arg:3 axis:0" }, 1243 { "Horizontal", '2', 0, "ui.split arg:3 axis:0" },
1244 { "Horizontal 1:2", SDLK_d, 0, "ui.frames arg:1 axis:0" }, 1244 { "Horizontal 1:2", SDLK_d, 0, "ui.split arg:1 axis:0" },
1245 { "Horizontal 2:1", SDLK_e, 0, "ui.frames arg:2 axis:0" }, 1245 { "Horizontal 2:1", SDLK_e, 0, "ui.split arg:2 axis:0" },
1246 { "---", 0, 0, NULL }, 1246 { "---", 0, 0, NULL },
1247 { "Vertical", '3', 0, "ui.frames arg:3 axis:1" }, 1247 { "Vertical", '3', 0, "ui.split arg:3 axis:1" },
1248 { "Vertical 1:2", SDLK_f, 0, "ui.frames arg:1 axis:1" }, 1248 { "Vertical 1:2", SDLK_f, 0, "ui.split arg:1 axis:1" },
1249 { "Vertical 2:1", SDLK_r, 0, "ui.frames arg:2 axis:1" }, 1249 { "Vertical 2:1", SDLK_r, 0, "ui.split arg:2 axis:1" },
1250 }, 9); 1250 }, 9);
1251 setFlags_Widget(splitMenu, disabledWhenHidden_WidgetFlag, iTrue); /* enabled when open */ 1251 setFlags_Widget(splitMenu, disabledWhenHidden_WidgetFlag, iTrue); /* enabled when open */
1252 setId_Widget(tabsMenu, "doctabs.menu"); 1252 setId_Widget(tabsMenu, "doctabs.menu");