diff options
author | Josh Rickmar <jrick@devio.us> | 2012-08-24 12:25:41 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-08-24 12:25:41 -0400 |
commit | f1f9d707f34b2b18b07abc3f7120fea1e69f4c40 (patch) | |
tree | 989a68d298fda695417352734c704a4c09b60ccd | |
parent | 6abeec3c811d6df2b60eb76eca5747073a064a40 (diff) | |
download | xombrero-f1f9d707f34b2b18b07abc3f7120fea1e69f4c40.tar.gz |
Add a setting to disable the tabs feature (same as -t flag)
Thanks to user njw on FS for the patch.
-rw-r--r-- | settings.c | 11 | ||||
-rw-r--r-- | xombrero.1 | 7 |
2 files changed, 17 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; diff --git a/xombrero.1 b/xombrero.1 index 9f92941..939431a 100644 --- a/xombrero.1 +++ b/xombrero.1 @@ -1568,6 +1568,13 @@ command. Set the compact tab bar font. E.g. .Pa tabbar_font = monospace normal 9 . +.It Cm tabless +Disable tabs, and open new windows instead. +Note that this feature does not disable the display of tabs. +Change your +.Cm show_tabs +setting also if you wish to disable the display of tabs. +Default is 0. .It Cm url_regex This is the regular expression that is used to match what constitutes a valid URL when using |