From 9b4eb6d60766300c6f1ae9503b283a45d07f1d4c Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 9 Nov 2013 13:21:56 +0100 Subject: =?UTF-8?q?core:=20add=20bar=20item=20"buffer=5Fzoom",=20add=20sig?= =?UTF-8?q?nals=20"buffer=5F{zoomed|unzoomed}"=20(patch=20#8204)=20(patch?= =?UTF-8?q?=20from=20Nils=20G=C3=B6rs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/gui-input.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/gui-input.c') diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c index a97f485f7..708e31e92 100644 --- a/src/gui/gui-input.c +++ b/src/gui/gui-input.c @@ -1605,11 +1605,14 @@ void gui_input_zoom_merged_buffer (struct t_gui_buffer *buffer) { struct t_gui_window *ptr_window; + int buffer_was_zoomed; /* do nothing if current buffer is not merged with another buffer */ if (gui_buffer_count_merged_buffers (buffer->number) < 2) return; + buffer_was_zoomed = (buffer->active == 2); + /* reset scroll in all windows displaying this buffer number */ for (ptr_window = gui_windows; ptr_window; ptr_window = ptr_window->next_window) @@ -1646,6 +1649,9 @@ gui_input_zoom_merged_buffer (struct t_gui_buffer *buffer) } gui_buffer_ask_chat_refresh (buffer, 2); + + hook_signal_send ((buffer_was_zoomed) ? "buffer_unzoomed" : "buffer_zoomed", + WEECHAT_HOOK_SIGNAL_POINTER, buffer); } /* -- cgit v1.2.3