From f7f019887d8e7552a499470fa6969273ad12a845 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 20 Jul 2013 19:27:51 +0200 Subject: aspell: rename option aspell.look.color to aspell.color.misspelled, add option aspell.color.suggestions --- src/plugins/aspell/weechat-aspell-config.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/plugins/aspell/weechat-aspell-config.c') diff --git a/src/plugins/aspell/weechat-aspell-config.c b/src/plugins/aspell/weechat-aspell-config.c index 2301f91a5..23d1894b2 100644 --- a/src/plugins/aspell/weechat-aspell-config.c +++ b/src/plugins/aspell/weechat-aspell-config.c @@ -35,9 +35,10 @@ struct t_config_section *weechat_aspell_config_section_dict = NULL; int weechat_aspell_config_loading = 0; -/* aspell config, look section */ +/* aspell config, color section */ -struct t_config_option *weechat_aspell_config_look_color; +struct t_config_option *weechat_aspell_config_color_misspelled; +struct t_config_option *weechat_aspell_config_color_suggestions; /* aspell config, check section */ @@ -419,8 +420,8 @@ weechat_aspell_config_init () if (!weechat_aspell_config_file) return 0; - /* look */ - ptr_section = weechat_config_new_section (weechat_aspell_config_file, "look", + /* color */ + ptr_section = weechat_config_new_section (weechat_aspell_config_file, "color", 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, @@ -431,11 +432,16 @@ weechat_aspell_config_init () return 0; } - weechat_aspell_config_look_color = weechat_config_new_option ( + weechat_aspell_config_color_misspelled = weechat_config_new_option ( weechat_aspell_config_file, ptr_section, - "color", "color", - N_("color used for misspelled words"), + "misspelled", "color", + N_("text color for misspelled words (input bar)"), NULL, 0, 0, "lightred", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); + weechat_aspell_config_color_suggestions = weechat_config_new_option ( + weechat_aspell_config_file, ptr_section, + "suggestions", "color", + N_("text color for suggestions on a misspelled word (status bar)"), + NULL, 0, 0, "default", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); /* check */ ptr_section = weechat_config_new_section (weechat_aspell_config_file, "check", -- cgit v1.2.3