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

core: apply new value of option weechat.look.buffer_notify_default to all opened buffers

This commit is contained in:
Sebastien Helleu
2011-04-17 08:32:30 +02:00
parent 06a9546ca5
commit dd8d789fec
2 changed files with 18 additions and 2 deletions
+15 -1
View File
@@ -282,6 +282,20 @@ config_change_buffer_content (void *data, struct t_config_option *option)
gui_current_window->refresh_needed = 1;
}
/*
* 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",