Move all necessary initialisation to newview()

Most all the settings and callbacks are set before view creation.
Create a related view (with inherited settings) if asked to.
This commit is contained in:
Quentin Rameau
2015-11-18 17:17:49 +01:00
parent ad538bb00a
commit 0f3e3bf669
2 changed files with 53 additions and 59 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) "
"Chrome/24.0.1295.0 Safari/537.15 Surf/"VERSION;
static char *scriptfile = "~/.surf/script.js";
static char *styledir = "~/.surf/styles/";
static char *cachefolder = "~/.surf/cache/";
static char *cachedir = "~/.surf/cache/";
static Bool kioskmode = FALSE; /* Ignore shortcuts */
static Bool showindicators = TRUE; /* Show indicators in window title */