1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

core: add signals "layout_buffers_applied" and "layout_windows_applied" (closes #2167)

This commit is contained in:
Sébastien Helleu
2024-08-16 12:36:31 +02:00
parent 4de6fa11d5
commit c8dffad56c
7 changed files with 54 additions and 0 deletions
+7
View File
@@ -30,6 +30,7 @@
#include "../core/weechat.h"
#include "../core/core-config.h"
#include "../core/core-hdata.h"
#include "../core/core-hook.h"
#include "../core/core-infolist.h"
#include "../core/core-log.h"
#include "../core/core-string.h"
@@ -367,6 +368,9 @@ gui_layout_buffer_apply (struct t_gui_layout *layout)
gui_buffer_set_active_buffer (ptr_buffer);
}
}
(void) hook_signal_send ("layout_buffers_applied",
WEECHAT_HOOK_SIGNAL_STRING, layout->name);
}
/*
@@ -754,6 +758,9 @@ gui_layout_window_apply (struct t_gui_layout *layout,
gui_layout_window_assign_all_buffers ();
gui_window_switch ((ptr_current_window) ? ptr_current_window : old_window);
(void) hook_signal_send ("layout_windows_applied",
WEECHAT_HOOK_SIGNAL_STRING, layout->name);
}
/*