summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app.c6
-rw-r--r--src/ui/documentwidget.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index 1164484e..03917f3e 100644
--- a/src/app.c
+++ b/src/app.c
@@ -139,6 +139,12 @@ static void init_App_(iApp *d, int argc, char **argv) {
139 loadPrefs_App_(d); 139 loadPrefs_App_(d);
140 d->window = new_Window(); 140 d->window = new_Window();
141 /* Widget state init. */ { 141 /* Widget state init. */ {
142 iString *homePath = newCStr_String(dataDir_App_);
143 clean_Path(homePath);
144 append_Path(homePath, &iStringLiteral("home.gmi"));
145 prependCStr_String(homePath, "file://");
146 setUrl_DocumentWidget(findWidget_App("document"), homePath);
147 delete_String(homePath);
142 } 148 }
143} 149}
144 150
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index ca91d896..a21d660d 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -84,8 +84,6 @@ void init_DocumentWidget(iDocumentWidget *d) {
84 init_PtrArray(&d->visibleLinks); 84 init_PtrArray(&d->visibleLinks);
85 d->hoverLink = NULL; 85 d->hoverLink = NULL;
86 init_Click(&d->click, d, SDL_BUTTON_LEFT); 86 init_Click(&d->click, d, SDL_BUTTON_LEFT);
87 setUrl_DocumentWidget(
88 d, collectNewFormat_String("file://%s/test.gmi", cstr_String(collect_String(home_Path()))));
89} 87}
90 88
91void deinit_DocumentWidget(iDocumentWidget *d) { 89void deinit_DocumentWidget(iDocumentWidget *d) {