1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +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
+1
View File
@@ -40,6 +40,7 @@
- core: add hdata count in evaluation of expressions with `hdata_count:name[list]` or `hdata_count:name[pointer]`
- core: add info "window" ([#2141](https://github.com/weechat/weechat/issues/2141))
- core: add completion "bars_items"
- core: add signals "layout_buffers_applied" and "layout_windows_applied" ([#2167](https://github.com/weechat/weechat/issues/2167))
- core: add signal "buffer_time_for_each_line_changed"
- api, relay: send new signal "buffer_line_data_changed" when a line is updated in a buffer via hdata, send event "buffer_line_data_changed" to clients of "api" and "weechat" protocols
- api: add hashtable type "longlong"
+8
View File
@@ -12286,6 +12286,14 @@ List of signals sent by WeeChat and plugins:
| String: key combo.
| Key combo in _cursor_ context.
| weechat | [[hook_signal_layout_buffers_applied]] layout_buffers_applied | 4.4.0
| String: layout name.
| Layout applied for buffers.
| weechat | [[hook_signal_layout_windows_applied]] layout_windows_applied | 4.4.0
| String: layout name.
| Layout applied for windows.
| weechat | [[hook_signal_mouse_enabled]] mouse_enabled | 1.1
| -
| Mouse enabled.
+8
View File
@@ -12539,6 +12539,14 @@ Liste des signaux envoyés par WeeChat et les extensions :
| Chaîne : combinaison de touches.
| Combinaison de touches dans le contexte _cursor_.
| weechat | [[hook_signal_layout_buffers_applied]] layout_buffers_applied | 4.4.0
| Chaîne: nom de la disposition.
| Disposition appliquée pour les tampons.
| weechat | [[hook_signal_layout_windows_applied]] layout_windows_applied | 4.4.0
| Chaîne: nom de la disposition.
| Disposition appliquée pour les fenêtres.
| weechat | [[hook_signal_mouse_enabled]] mouse_enabled | 1.1
| -
| Souris activée.
+10
View File
@@ -12810,6 +12810,16 @@ List of signals sent by WeeChat and plugins:
| String: key combo.
| Key combo in _cursor_ context.
// TRANSLATION MISSING
| weechat | [[hook_signal_layout_buffers_applied]] layout_buffers_applied | 4.4.0
| String: layout name.
| Layout applied for buffers.
// TRANSLATION MISSING
| weechat | [[hook_signal_layout_windows_applied]] layout_windows_applied | 4.4.0
| String: layout name.
| Layout applied for windows.
// TRANSLATION MISSING
| weechat | [[hook_signal_mouse_enabled]] mouse_enabled | 1.1
| -
+10
View File
@@ -12464,6 +12464,16 @@ WeeChat とプラグインが送信するシグナルのリスト:
| String: キーの組み合わせ
| _cursor_ コンテキスト内のキーの組み合わせ
// TRANSLATION MISSING
| weechat | [[hook_signal_layout_buffers_applied]] layout_buffers_applied | 4.4.0
| String: layout name.
| Layout applied for buffers.
// TRANSLATION MISSING
| weechat | [[hook_signal_layout_windows_applied]] layout_windows_applied | 4.4.0
| String: layout name.
| Layout applied for windows.
| weechat | [[hook_signal_mouse_enabled]] mouse_enabled | 1.1
| -
| マウスが有効化された
+10
View File
@@ -11967,6 +11967,16 @@ struct t_hook *weechat_hook_signal (const char *signal,
| Стринг: комбинација тастера.
| Комбинација тастера у _cursor_ контексту.
// TRANSLATION MISSING
| weechat | [[hook_signal_layout_buffers_applied]] layout_buffers_applied | 4.4.0
| String: layout name.
| Layout applied for buffers.
// TRANSLATION MISSING
| weechat | [[hook_signal_layout_windows_applied]] layout_windows_applied | 4.4.0
| String: layout name.
| Layout applied for windows.
| weechat | [[hook_signal_mouse_enabled]] mouse_enabled | 1.1
| - |
Укључен је миш.
+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);
}
/*