summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-06-29 10:33:08 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-06-29 10:33:08 +0200
commit0f5b4dbecbbcc413edbda5d0c3decefaf03683d2 (patch)
tree38387372b0f5ecf8e5b28d55a661c9c106761923 /src/core
parent56a39bc8c8f670801117b6c3851caf46ed34d264 (diff)
downloadweechat-0f5b4dbecbbcc413edbda5d0c3decefaf03683d2.zip
core: add new option weechat.look.separator_vertical, rename option weechat.look.hline_char to weechat.look.separator_horizontal
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config.c24
-rw-r--r--src/core/wee-config.h3
2 files changed, 18 insertions, 9 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 6402adbad..94f0af776 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -90,7 +90,6 @@ struct t_config_option *config_look_eat_newline_glitch;
struct t_config_option *config_look_highlight;
struct t_config_option *config_look_highlight_regex;
struct t_config_option *config_look_highlight_tags;
-struct t_config_option *config_look_hline_char;
struct t_config_option *config_look_hotlist_add_buffer_if_away;
struct t_config_option *config_look_hotlist_buffer_separator;
struct t_config_option *config_look_hotlist_count_max;
@@ -129,6 +128,8 @@ struct t_config_option *config_look_save_layout_on_exit;
struct t_config_option *config_look_scroll_amount;
struct t_config_option *config_look_scroll_page_percent;
struct t_config_option *config_look_search_text_not_found_alert;
+struct t_config_option *config_look_separator_horizontal;
+struct t_config_option *config_look_separator_vertical;
struct t_config_option *config_look_set_title;
struct t_config_option *config_look_time_format;
@@ -1652,13 +1653,6 @@ config_weechat_init_options ()
"comparison, examples: \"irc_notice\" for IRC notices, "
"\"nick_flashcode\" for messages from nick \"FlashCode\")"),
NULL, 0, 0, "", NULL, 0, NULL, NULL, &config_change_highlight_tags, NULL, NULL, NULL);
- config_look_hline_char = config_file_new_option (
- weechat_config_file, ptr_section,
- "hline_char", "string",
- N_("char used to draw horizontal separators around bars (empty value "
- "will draw a real line with ncurses, but may cause bugs with URL "
- "selection under some terminals), wide chars are NOT allowed here"),
- NULL, 0, 0, "-", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
config_look_hotlist_add_buffer_if_away = config_file_new_option (
weechat_config_file, ptr_section,
"hotlist_add_buffer_if_away", "boolean",
@@ -1898,6 +1892,20 @@ config_weechat_init_options ()
"search_text_not_found_alert", "boolean",
N_("alert user when text sought is not found in buffer"),
NULL, 0, 0, "on", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
+ config_look_separator_horizontal = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "separator_horizontal", "string",
+ N_("char used to draw horizontal separators around bars (empty value "
+ "will draw a real line with ncurses, but may cause bugs with URL "
+ "selection under some terminals), wide chars are NOT allowed here"),
+ NULL, 0, 0, "-", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
+ config_look_separator_vertical = config_file_new_option (
+ weechat_config_file, ptr_section,
+ "separator_vertical", "string",
+ N_("char used to draw vertical separators around bars (empty value "
+ "will draw a real line with ncurses), wide chars are NOT allowed "
+ "here"),
+ NULL, 0, 0, "", NULL, 0, NULL, NULL, &config_change_buffers, NULL, NULL, NULL);
config_look_set_title = config_file_new_option (
weechat_config_file, ptr_section,
"set_title", "boolean",
diff --git a/src/core/wee-config.h b/src/core/wee-config.h
index 8c4804130..c09544a1a 100644
--- a/src/core/wee-config.h
+++ b/src/core/wee-config.h
@@ -115,7 +115,6 @@ extern struct t_config_option *config_look_day_change_time_format;
extern struct t_config_option *config_look_eat_newline_glitch;
extern struct t_config_option *config_look_highlight;
extern struct t_config_option *config_look_highlight_regex;
-extern struct t_config_option *config_look_hline_char;
extern struct t_config_option *config_look_hotlist_add_buffer_if_away;
extern struct t_config_option *config_look_hotlist_buffer_separator;
extern struct t_config_option *config_look_hotlist_count_max;
@@ -154,6 +153,8 @@ extern struct t_config_option *config_look_save_layout_on_exit;
extern struct t_config_option *config_look_scroll_amount;
extern struct t_config_option *config_look_scroll_page_percent;
extern struct t_config_option *config_look_search_text_not_found_alert;
+extern struct t_config_option *config_look_separator_horizontal;
+extern struct t_config_option *config_look_separator_vertical;
extern struct t_config_option *config_look_set_title;
extern struct t_config_option *config_look_time_format;