summaryrefslogtreecommitdiff
path: root/src/gui/gtk/gui-gtk-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-01-28 17:18:15 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-01-28 17:18:15 +0100
commit8ea2b93a28fb8d8eabd99fd849b4c5a3f7e164e8 (patch)
treee0204e069387e456059cda8ae2c0ab5fca29f97c /src/gui/gtk/gui-gtk-window.c
parent3ecd3d7a26fec260a4ca0655690057873b780c80 (diff)
downloadweechat-8ea2b93a28fb8d8eabd99fd849b4c5a3f7e164e8.zip
core: add signal "window_switch"
Diffstat (limited to 'src/gui/gtk/gui-gtk-window.c')
-rw-r--r--src/gui/gtk/gui-gtk-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/gtk/gui-gtk-window.c b/src/gui/gtk/gui-gtk-window.c
index 933982d5b..48eaa7695 100644
--- a/src/gui/gtk/gui-gtk-window.c
+++ b/src/gui/gtk/gui-gtk-window.c
@@ -30,7 +30,9 @@
#include "../../core/weechat.h"
#include "../../core/wee-config.h"
+#include "../../core/wee-hook.h"
#include "../../core/wee-log.h"
+#include "../../plugins/plugin.h"
#include "../gui-window.h"
#include "../gui-bar.h"
#include "../gui-buffer.h"
@@ -185,6 +187,9 @@ gui_window_switch (struct t_gui_window *window)
gui_window_switch_to_buffer (gui_current_window, gui_current_window->buffer, 1);
gui_window_redraw_buffer (gui_current_window->buffer);
+
+ hook_signal_send ("window_switch",
+ WEECHAT_HOOK_SIGNAL_POINTER, window);
}
/*