summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-04-17 08:32:30 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-04-17 08:32:30 +0200
commitdd8d789fec1668c0cf50e44eeb13b1d1b0cf6ffe (patch)
treee88415b0e3892037c776660dccb118126b25af83 /src/core
parent06a9546ca5d69ff0771630eaa1f7663e53a44cfc (diff)
downloadweechat-dd8d789fec1668c0cf50e44eeb13b1d1b0cf6ffe.zip
core: apply new value of option weechat.look.buffer_notify_default to all opened buffers
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-config.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index aad659c53..4a7cd482b 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -283,6 +283,20 @@ config_change_buffer_content (void *data, struct t_config_option *option)
}
/*
+ * config_change_buffer_notify_default: called when buffer default notify changes
+ */
+
+void
+config_change_buffer_notify_default (void *data, struct t_config_option *option)
+{
+ /* make C compiler happy */
+ (void) data;
+ (void) option;
+
+ gui_buffer_notify_set_all ();
+}
+
+/*
* config_change_buffer_time_format: called when buffer time format changes
*/
@@ -1533,7 +1547,7 @@ config_weechat_init_options ()
"message=messages+highlights, highlight=highlights only, "
"none=never display in hotlist"),
"none|highlight|message|all", 0, 0, "all", NULL, 0,
- NULL, NULL, NULL, NULL, NULL, NULL);
+ NULL, NULL, &config_change_buffer_notify_default, NULL, NULL, NULL);
config_look_buffer_time_format = config_file_new_option (
weechat_config_file, ptr_section,
"buffer_time_format", "string",