1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

fset: add option fset.look.show_plugin_description

This commit is contained in:
Sébastien Helleu
2017-05-31 21:40:42 +02:00
parent ee3d5474b9
commit f555d588b8
3 changed files with 34 additions and 0 deletions
+26
View File
@@ -35,6 +35,7 @@ struct t_config_file *fset_config_file = NULL;
struct t_config_option *fset_config_look_condition_catch_set;
struct t_config_option *fset_config_look_help_bar;
struct t_config_option *fset_config_look_show_plugin_description;
struct t_config_option *fset_config_look_use_keys;
struct t_config_option *fset_config_look_use_mute;
@@ -83,6 +84,23 @@ fset_config_change_help_bar_cb (const void *pointer, void *data,
weechat_command (NULL, "/window refresh");
}
/*
* Callback for changes on option "fset.look.show_plugin_description".
*/
void
fset_config_change_show_plugin_description_cb (const void *pointer, void *data,
struct t_config_option *option)
{
/* make C compiler happy */
(void) pointer;
(void) data;
(void) option;
if (fset_buffer)
fset_buffer_refresh (1);
}
/*
* Callback for changes on option "fset.look.use_keys".
*/
@@ -212,6 +230,14 @@ fset_config_init ()
NULL, NULL, NULL,
&fset_config_change_help_bar_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_look_show_plugin_description = weechat_config_new_option (
fset_config_file, ptr_section,
"show_plugin_description", "boolean",
N_("show the plugin description options (plugins.desc.*)"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL,
&fset_config_change_show_plugin_description_cb, NULL, NULL,
NULL, NULL, NULL);
fset_config_look_use_keys = weechat_config_new_option (
fset_config_file, ptr_section,
"use_keys", "boolean",