summaryrefslogtreecommitdiff
path: root/src/ui/root.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-22 07:34:38 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-22 07:34:38 +0300
commit393040b23fcd16c4b01f134bfc388c683360a7bb (patch)
treee365762637638d74ca492eb431a7c0b8ec9ac448 /src/ui/root.c
parentc752568f1cc5cee1d1957644a20482501b96c25c (diff)
Tab close buttons, shown on hover
IssueID #354
Diffstat (limited to 'src/ui/root.c')
-rw-r--r--src/ui/root.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/root.c b/src/ui/root.c
index f6d6f11d..ba8d95ee 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -1281,7 +1281,9 @@ void createUserInterface_Root(iRoot *d) {
1281 iWidget *docTabs = makeTabs_Widget(mainStack); 1281 iWidget *docTabs = makeTabs_Widget(mainStack);
1282 setId_Widget(docTabs, "doctabs"); 1282 setId_Widget(docTabs, "doctabs");
1283 setBackgroundColor_Widget(docTabs, uiBackground_ColorId); 1283 setBackgroundColor_Widget(docTabs, uiBackground_ColorId);
1284 appendTabPage_Widget(docTabs, iClob(new_DocumentWidget()), "Document", 0, 0); 1284 iDocumentWidget *doc;
1285 appendTabPage_Widget(docTabs, iClob(doc = new_DocumentWidget()), "Document", 0, 0);
1286 addTabCloseButton_Widget(docTabs, as_Widget(doc), "tabs.close");
1285 iWidget *buttons = findChild_Widget(docTabs, "tabs.buttons"); 1287 iWidget *buttons = findChild_Widget(docTabs, "tabs.buttons");
1286 setFlags_Widget(buttons, collapse_WidgetFlag | hidden_WidgetFlag | 1288 setFlags_Widget(buttons, collapse_WidgetFlag | hidden_WidgetFlag |
1287 drawBackgroundToHorizontalSafeArea_WidgetFlag, iTrue); 1289 drawBackgroundToHorizontalSafeArea_WidgetFlag, iTrue);