summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 2bfecd8c..dbbd04b7 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -75,7 +75,29 @@ static void setupUserInterface_Window(iWindow *d) {
75 setFlags_Widget(d->root, resizeChildren_WidgetFlag, iTrue); 75 setFlags_Widget(d->root, resizeChildren_WidgetFlag, iTrue);
76 setCommandHandler_Widget(d->root, handleRootCommands_); 76 setCommandHandler_Widget(d->root, handleRootCommands_);
77 77
78 addChild_Widget(d->root, iClob(new_DocumentWidget())); 78 iWidget *div = makeVDiv_Widget();
79 setId_Widget(div, "navdiv");
80 addChild_Widget(d->root, iClob(div));
81
82 /* Navigation bar. */ {
83 iWidget *navBar = new_Widget();
84 setId_Widget(navBar, "navbar");
85 setFlags_Widget(navBar,
86 arrangeHeight_WidgetFlag | resizeChildren_WidgetFlag |
87 arrangeHorizontal_WidgetFlag,
88 iTrue);
89 addChild_Widget(div, iClob(navBar));
90 setBackgroundColor_Widget(div, gray25_ColorId);
91
92 addChild_Widget(navBar, iClob(new_LabelWidget("Back", 0, 0, "navigate.back")));
93 addChild_Widget(navBar, iClob(new_LabelWidget("Fwd", 0, 0, "navigate.forward")));
94 addChild_Widget(navBar, iClob(new_LabelWidget("Home", 0, 0, "navigate.home")));
95 iInputWidget *url = new_InputWidget(0);
96 setTextCStr_InputWidget(url, "gemini://");
97 addChildFlags_Widget(navBar, iClob(url), expand_WidgetFlag);
98 }
99
100 addChildFlags_Widget(div, iClob(new_DocumentWidget()), expand_WidgetFlag);
79 101
80#if 0 102#if 0
81 iWidget *mainDiv = makeHDiv_Widget(); 103 iWidget *mainDiv = makeHDiv_Widget();