summaryrefslogtreecommitdiff
path: root/src/plugins/fset/fset-config.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-05-31 21:40:42 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-06-25 16:35:27 +0200
commitf555d588b8f7e575c8cf300be8026d13d3c784cb (patch)
treea8ed0d502cbb6882e720b91f389ec229d4d3aa97 /src/plugins/fset/fset-config.c
parentee3d5474b9fd5a8ad7a6daa339c0a478c93764ab (diff)
downloadweechat-f555d588b8f7e575c8cf300be8026d13d3c784cb.zip
fset: add option fset.look.show_plugin_description
Diffstat (limited to 'src/plugins/fset/fset-config.c')
-rw-r--r--src/plugins/fset/fset-config.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c
index ccc76b607..1bbe884eb 100644
--- a/src/plugins/fset/fset-config.c
+++ b/src/plugins/fset/fset-config.c
@@ -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;
@@ -84,6 +85,23 @@ fset_config_change_help_bar_cb (const void *pointer, void *data,
}
/*
+ * 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",