about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2013-06-09 22:25:51 -0400
committerDavid Hill <dhill@conformal.com>2013-06-09 22:25:51 -0400
commit092bf0f2b208e4b4bbecd5cc71ecef4d7830e066 (patch)
tree36032aa8215ad560d9963e7e905867a9e003e903
parent54d1631fdf1204fc496d94dbb8c496307247f685 (diff)
downloadxombrero-092bf0f2b208e4b4bbecd5cc71ecef4d7830e066.tar.gz
use a define for js_auto_open_windows setting
-rw-r--r--settings.c6
-rw-r--r--xombrero.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/settings.c b/settings.c
index 8748ce0..dcf6705 100644
--- a/settings.c
+++ b/settings.c
@@ -121,7 +121,7 @@ int		allow_insecure_scripts = XT_DS_ALLOW_INSECURE_SCRIPTS;
 int		do_not_track = XT_DS_DO_NOT_TRACK;
 int		preload_strict_transport = XT_DS_PRELOAD_STRICT_TRANSPORT;
 char		*gnutls_priority_string = XT_DS_GNUTLS_PRIORITY_STRING;
-int		js_auto_open_windows = 1;
+int		js_auto_open_windows = XT_DS_JS_AUTO_OPEN_WINDOWS;
 char		*cmd_font_name = NULL;	/* these are all set at startup */
 char		*oops_font_name = NULL;
 char		*statusbar_font_name = NULL;
@@ -2612,7 +2612,7 @@ set_js_auto_open_windows(char *value)
 	const char	*errstr;
 
 	if (value == NULL || strlen(value) == 0)
-		js_auto_open_windows = 1;
+		js_auto_open_windows = XT_DS_JS_AUTO_OPEN_WINDOWS;
 	else {
 		tmp = (int)strtonum(value, 0, 1, &errstr);
 		if (errstr)
@@ -2626,7 +2626,7 @@ int
 check_js_auto_open_windows(char **tt)
 {
 	*tt = g_strdup("Default: Enabled");
-	return (js_auto_open_windows != 1);
+	return (js_auto_open_windows != XT_DS_JS_AUTO_OPEN_WINDOWS);
 }
 
 char *
diff --git a/xombrero.h b/xombrero.h
index 2653fac..777b3d3 100644
--- a/xombrero.h
+++ b/xombrero.h
@@ -691,7 +691,7 @@ int		command_mode(struct tab *, struct karg *);
 #define XT_DS_DO_NOT_TRACK	(0)
 #define XT_DS_PRELOAD_STRICT_TRANSPORT	(1)
 #define XT_DS_GNUTLS_PRIORITY_STRING	(NULL)
-
+#define XT_DS_JS_AUTO_OPEN_WINDOWS	(1)
 
 /* actions */
 #define XT_STYLE_CURRENT_TAB	(0)