about summary refs log tree commit diff stats
path: root/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/settings.c b/settings.c
index 3140711..ef81c54 100644
--- a/settings.c
+++ b/settings.c
@@ -31,7 +31,6 @@ PangoFontDescription	*statusbar_font;
 PangoFontDescription	*tabbar_font;
 
 /* non-settings */
-int		tabless = 0;	/* allow only 1 tab */
 char		search_file[PATH_MAX];
 char		command_file[PATH_MAX];
 char		runtime_settings[PATH_MAX]; /* override of settings */
@@ -59,6 +58,7 @@ gint		max_host_connections = 5;
 int		history_autosave = 0;
 int		edit_mode = XT_EM_HYBRID;
 char		*include_config = NULL;
+int		tabless = 0;	/* allow only 1 tab */
 
 /* runtime settings */
 int		show_tabs = XT_DS_SHOW_TABS;	/* show tabs on notebook */
@@ -279,6 +279,7 @@ int		check_statusbar_elems(char **);
 int		check_statusbar_font(char **);
 int		check_statusbar_style(char **);
 int		check_tab_style(char **);
+int		check_tabless(char **);
 int		check_tabbar_font(char **);
 int		check_url_regex(char **);
 int		check_userstyle(char **);
@@ -559,6 +560,7 @@ struct settings		rs[] = {
 	{ "statusbar_style",		XT_S_STR, 0, NULL, NULL,&s_statusbar_style, NULL, set_statusbar_style_rt, check_statusbar_style, TT_STATUSBAR_STYLE },
 	{ "tab_style",			XT_S_STR, 0, NULL, NULL,&s_tab_style, NULL, set_tab_style_rt, check_tab_style, TT_TAB_STYLE },
 	{ "tabbar_font",		XT_S_STR, 0, NULL, &tabbar_font_name, NULL, NULL, set_tabbar_font, check_tabbar_font, TT_TABBAR_FONT },
+	{ "tabless",			XT_S_BOOL, 0,		&tabless, NULL, NULL, NULL, NULL, check_tabless, TT_TABLESS },
 	{ "url_regex",			XT_S_STR, 0, NULL,	&url_regex, NULL, NULL, set_url_regex, check_url_regex, TT_URL_REGEX },
 	{ "userstyle",			XT_S_STR, 0, NULL, NULL,&s_userstyle, NULL, set_userstyle_rt, check_userstyle, TT_USERSTYLE },
 	{ "userstyle_global",		XT_S_BOOL, 0,		&userstyle_global, NULL, NULL, NULL, set_userstyle_global, check_userstyle_global, TT_USERSTYLE_GLOBAL },
@@ -837,6 +839,13 @@ check_tabbar_font(char **tt)
 }
 
 int
+check_tabless(char **tt)
+{
+	*tt = g_strdup_printf("Default: Disabled\n");
+	return (tabless != 0);
+}
+
+int
 set_color_visited_uris(char *value)
 {
 	int			tmp;
a title='author hut <hut@lavabit.com> 2011-10-07 02:40:19 +0200 committer hut <hut@lavabit.com> 2011-10-08 06:09:02 +0200 general updates' href='/akspecs/ranger/commit/doc/HACKING?h=v1.6.1&id=7bf5f9672ee79489553506831b7cab54a8609077'>7bf5f967 ^
f8f6f7f9 ^




7bf5f967 ^
f8f6f7f9 ^




f8f6f7f9 ^

29028631 ^

a2853ab6 ^
3ee05c16 ^

f8f6f7f9 ^
f8f6f7f9 ^







f8f6f7f9 ^




7bf5f967 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79