summaryrefslogtreecommitdiff
path: root/src/prefsparser.cc
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-06-09 00:41:02 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-06-09 12:06:19 +0200
commitd8cc59e18d6bf90c91e5d9cf1f9c36587f4ab26c (patch)
treef004320e757660cbefb02559ea7a902575c84e1c /src/prefsparser.cc
parente89a2293ebb3331dca46f5edf0108231b1007402 (diff)
Add new_tab_page option
Adds support to load a custom page when a new tab is opened. The current behavior is set as the default, load a blank page. The location bar is only selected when the new tab page is the blank page, otherwise the page loaded gets the focus. Co-authored-by: Alex <a1ex@dismail.de> Fixes: https://github.com/dillo-browser/dillo/issues/124
Diffstat (limited to 'src/prefsparser.cc')
-rw-r--r--src/prefsparser.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prefsparser.cc b/src/prefsparser.cc
index 40460e52..8755890c 100644
--- a/src/prefsparser.cc
+++ b/src/prefsparser.cc
@@ -171,6 +171,7 @@ void PrefsParser::parse(FILE *fp)
{ "fullwindow_start", &prefs.fullwindow_start, PREFS_BOOL, 0 },
{ "geometry", NULL, PREFS_GEOMETRY, 0 },
{ "home", &prefs.home, PREFS_URL, 0 },
+ { "new_tab_page", &prefs.new_tab_page, PREFS_URL, 0 },
{ "http_language", &prefs.http_language, PREFS_STRING, 0 },
{ "http_max_conns", &prefs.http_max_conns, PREFS_INT32, 0 },
{ "http_persistent_conns", &prefs.http_persistent_conns, PREFS_BOOL, 0 },