diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-01 20:16:59 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-01 20:16:59 +0200 |
commit | 385b1d0133dccd27c5b091232ff0ce975ba6c7a3 (patch) | |
tree | 4dba4dfb8fc4f0d8a9ced6a55431d61667cc9f57 /src | |
parent | b8f9b83500ce3d9acdb78d3cb6439734b1d01898 (diff) | |
download | weechat-385b1d0133dccd27c5b091232ff0ce975ba6c7a3.zip |
core: remove options trigger.color.trigger and trigger.color.trigger_disabled (issue #1820)
These options are used instead:
- weechat.color.chat_status_disabled
- weechat.color.chat_status_enabled
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/trigger/trigger-buffer.c | 2 | ||||
-rw-r--r-- | src/plugins/trigger/trigger-command.c | 8 | ||||
-rw-r--r-- | src/plugins/trigger/trigger-config.c | 12 | ||||
-rw-r--r-- | src/plugins/trigger/trigger-config.h | 2 |
4 files changed, 3 insertions, 21 deletions
diff --git a/src/plugins/trigger/trigger-buffer.c b/src/plugins/trigger/trigger-buffer.c index 27188b8d8..28b721908 100644 --- a/src/plugins/trigger/trigger-buffer.c +++ b/src/plugins/trigger/trigger-buffer.c @@ -341,7 +341,7 @@ trigger_buffer_display_trigger (struct t_trigger *trigger, weechat_color (weechat_config_string (trigger_config_color_identifier)), context->id, trigger_hook_type_string[weechat_config_integer (trigger->options[TRIGGER_OPTION_HOOK])], - weechat_color (weechat_config_string (trigger_config_color_trigger)), + weechat_color ("chat_status_enabled"), trigger->name, weechat_color ("chat_delimiters"), weechat_color ("reset"), diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c index 2440446f1..9b1adb753 100644 --- a/src/plugins/trigger/trigger-command.c +++ b/src/plugins/trigger/trigger-command.c @@ -72,9 +72,7 @@ trigger_command_display_trigger_internal (const char *name, weechat_printf_date_tags ( NULL, 0, "no_trigger", " %s%s%s: %s%s%s%s%s%s%s", - (enabled) ? - weechat_color (weechat_config_string (trigger_config_color_trigger)) : - weechat_color (weechat_config_string (trigger_config_color_trigger_disabled)), + weechat_color ((enabled) ? "chat_status_enabled" : "chat_status_disabled"), name, weechat_color ("reset"), hook, @@ -217,9 +215,7 @@ trigger_command_display_trigger_internal (const char *name, weechat_printf_date_tags ( NULL, 0, "no_trigger", " %s%s%s: %s%s%s%s%s%s%s%s%s%s%s%s%s", - (enabled) ? - weechat_color (weechat_config_string (trigger_config_color_trigger)) : - weechat_color (weechat_config_string (trigger_config_color_trigger_disabled)), + weechat_color ((enabled) ? "chat_status_enabled": "chat_status_disabled"), name, weechat_color ("reset"), hook, diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c index ec25b0b3f..a430ba9d8 100644 --- a/src/plugins/trigger/trigger-config.c +++ b/src/plugins/trigger/trigger-config.c @@ -780,18 +780,6 @@ trigger_config_init () N_("text color for replacement text (for regular expressions)"), NULL, 0, 0, "cyan", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); - trigger_config_color_trigger = weechat_config_new_option ( - trigger_config_file, trigger_config_section_color, - "trigger", "color", - N_("text color for trigger name"), - NULL, 0, 0, "green", NULL, 0, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); - trigger_config_color_trigger_disabled = weechat_config_new_option ( - trigger_config_file, trigger_config_section_color, - "trigger_disabled", "color", - N_("text color for disabled trigger name"), - NULL, 0, 0, "red", NULL, 0, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); } /* trigger */ diff --git a/src/plugins/trigger/trigger-config.h b/src/plugins/trigger/trigger-config.h index 096ce9afb..887907cdf 100644 --- a/src/plugins/trigger/trigger-config.h +++ b/src/plugins/trigger/trigger-config.h @@ -41,8 +41,6 @@ extern struct t_config_option *trigger_config_color_flag_post_action; extern struct t_config_option *trigger_config_color_identifier; extern struct t_config_option *trigger_config_color_regex; extern struct t_config_option *trigger_config_color_replace; -extern struct t_config_option *trigger_config_color_trigger; -extern struct t_config_option *trigger_config_color_trigger_disabled; extern char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS]; |