1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +02:00

Remove old and unused color options

This commit is contained in:
Sebastien Helleu
2008-11-19 20:53:56 +01:00
parent 33daa4bc55
commit 1dc33f57e2
22 changed files with 453 additions and 835 deletions
+1 -1
View File
@@ -757,7 +757,7 @@ weechat_aspell_modifier_cb (void *data, const char *modifier,
/* save last modifier string received */
aspell_last_modifier_string = strdup (string);
color_normal = weechat_color (weechat_config_string (weechat_config_get ("weechat.color.input")));
color_normal = weechat_color ("bar_fg");
length_color_normal = strlen (color_normal);
color_error = weechat_color (weechat_config_string (weechat_aspell_config_look_color));
length_color_error = strlen (color_error);
+39
View File
@@ -65,6 +65,10 @@ struct t_config_option *irc_config_look_smart_filter;
struct t_config_option *irc_config_look_smart_filter_delay;
struct t_config_option *irc_config_look_notice_as_pv;
/* IRC config, color section */
struct t_config_option *irc_config_color_input_nick;
/* IRC config, network section */
struct t_config_option *irc_config_network_default_msg_part;
@@ -207,6 +211,22 @@ irc_config_change_look_highlight_tags (void *data,
}
}
/*
* irc_config_change_color_input_nick: called when the color of input nick is
* changed
*/
void
irc_config_change_color_input_nick (void *data,
struct t_config_option *option)
{
/* make C compiler happy */
(void) data;
(void) option;
weechat_bar_item_update ("input_prompt");
}
/*
* irc_config_change_network_away_check: called when away check is changed
*/
@@ -1110,6 +1130,25 @@ irc_config_init ()
N_("display notices as private messages"),
NULL, 0, 0, "off", NULL, NULL, NULL, NULL, NULL, NULL, NULL);
/* color */
ptr_section = weechat_config_new_section (irc_config_file, "color",
0, 0,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
NULL, NULL);
if (!ptr_section)
{
weechat_config_free (irc_config_file);
return 0;
}
irc_config_color_input_nick = weechat_config_new_option (
irc_config_file, ptr_section,
"input_nick", "color",
N_("color for nick in input bar"),
NULL, -1, 0, "lightcyan", NULL, NULL, NULL,
&irc_config_change_color_input_nick, NULL, NULL, NULL);
/* network */
ptr_section = weechat_config_new_section (irc_config_file, "network",
0, 0,
+2
View File
@@ -76,6 +76,8 @@ extern struct t_config_option *irc_config_look_smart_filter;
extern struct t_config_option *irc_config_look_smart_filter_delay;
extern struct t_config_option *irc_config_look_notice_as_pv;
extern struct t_config_option *irc_config_color_input_nick;
extern struct t_config_option *irc_config_network_default_msg_part;
extern struct t_config_option *irc_config_network_default_msg_quit;
extern struct t_config_option *irc_config_network_away_check;
+4 -4
View File
@@ -219,7 +219,7 @@ irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel,
weechat_nicklist_add_nick (channel->buffer, ptr_group,
ptr_nick->name,
(is_away) ?
"weechat.color.nicklist_away" : "weechat.color.nicklist",
"weechat.color.nicklist_away" : "bar_fg",
prefix, str_prefix_color, 1);
return ptr_nick;
@@ -268,7 +268,7 @@ irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel,
weechat_nicklist_add_nick (channel->buffer, ptr_group,
new_nick->name,
(is_away) ?
"weechat.color.nicklist_away" : "weechat.color.nicklist",
"weechat.color.nicklist_away" : "bar_fg",
prefix, str_prefix_color, 1);
/* all is ok, return address of new nick */
@@ -320,7 +320,7 @@ irc_nick_change (struct t_irc_server *server, struct t_irc_channel *channel,
"weechat.color.nicklist_prefix%d",
prefix_color);
weechat_nicklist_add_nick (channel->buffer, ptr_group,
nick->name, "weechat.color.nicklist",
nick->name, "bar_fg",
prefix, str_prefix_color, 1);
}
@@ -356,7 +356,7 @@ irc_nick_set (struct t_irc_channel *channel,
weechat_nicklist_add_nick (channel->buffer, ptr_group,
nick->name,
(nick->flags & IRC_NICK_AWAY) ?
"weechat.color.nicklist_away" : "weechat.color.nicklist",
"weechat.color.nicklist_away" : "bar_fg",
prefix, str_prefix_color, 1);
}
+1 -1
View File
@@ -63,7 +63,7 @@
#define IRC_COLOR_BAR_DELIM weechat_color("bar_delim")
#define IRC_COLOR_STATUS_NUMBER weechat_color(weechat_config_string(weechat_config_get("weechat.color.status_number")))
#define IRC_COLOR_STATUS_NAME weechat_color(weechat_config_string(weechat_config_get("weechat.color.status_name")))
#define IRC_COLOR_INPUT_NICK weechat_color(weechat_config_string(weechat_config_get("weechat.color.input_nick")))
#define IRC_COLOR_INPUT_NICK weechat_color(weechat_config_string(irc_config_color_input_nick))
extern struct t_weechat_plugin *weechat_irc_plugin;
extern struct t_hook *irc_hook_timer_check_away;