diff options
-rw-r--r-- | ChangeLog.asciidoc | 1 | ||||
-rw-r--r-- | doc/en/weechat_plugin_api.en.asciidoc | 10 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.asciidoc | 10 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.asciidoc | 12 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 12 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-mouse.c | 6 |
6 files changed, 51 insertions, 0 deletions
diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index 23df12716..ff3f2e430 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -17,6 +17,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] === New features +* core: add signals "mouse_enabled" and "mouse_disabled" (closes #244) * core: add hide of chars in string in evaluation of expressions * core: add arraylists, improve speed of completions (about 50x faster) * core: move bar item "scroll" between buffer name and lag in default bar items diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index ae25da2b6..60f38f86b 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -8272,6 +8272,16 @@ List of signals sent by WeeChat and plugins: String: key combo | Key combo in 'cursor' context +| weechat | mouse_enabled + + _(WeeChat ≥ 1.1)_ | + - | + Mouse enabled + +| weechat | mouse_disabled + + _(WeeChat ≥ 1.1)_ | + - | + Mouse disabled + | weechat | nicklist_group_added + _(WeeChat ≥ 0.3.2)_ | String: buffer pointer + "," + group name | diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc index f9655e24f..cb073f653 100644 --- a/doc/fr/weechat_plugin_api.fr.asciidoc +++ b/doc/fr/weechat_plugin_api.fr.asciidoc @@ -8418,6 +8418,16 @@ Liste des signaux envoyés par WeeChat et les extensions : Chaîne : combinaison de touches | Combinaison de touches dans le contexte 'cursor' +| weechat | mouse_enabled + + _(WeeChat ≥ 1.1)_ | + - | + Souris activée + +| weechat | mouse_disabled + + _(WeeChat ≥ 1.1)_ | + - | + Souris désactivée + | weechat | nicklist_group_added + _(WeeChat ≥ 0.3.2)_ | Chaîne : pointeur tampon + "," + nom du groupe | diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index f3af1c2aa..01318a8a2 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -8483,6 +8483,18 @@ List of signals sent by WeeChat and plugins: Key combo in 'cursor' context // TRANSLATION MISSING +| weechat | mouse_enabled + + _(WeeChat ≥ 1.1)_ | + - | + Mouse enabled + +// TRANSLATION MISSING +| weechat | mouse_disabled + + _(WeeChat ≥ 1.1)_ | + - | + Mouse disabled + +// TRANSLATION MISSING | weechat | nicklist_group_added + _(WeeChat ≥ 0.3.2)_ | String: buffer pointer + "," + group name | diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index ea2e38814..66b1294dd 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -8266,6 +8266,18 @@ WeeChat とプラグインが送信するシグナルのリスト: String: キーの組み合わせ | 'cursor' コンテキスト内のキーの組み合わせ +// TRANSLATION MISSING +| weechat | mouse_enabled + + _(WeeChat ≥ 1.1)_ | + - | + Mouse enabled + +// TRANSLATION MISSING +| weechat | mouse_disabled + + _(WeeChat ≥ 1.1)_ | + - | + Mouse disabled + | weechat | nicklist_group_added + _(WeeChat バージョン 0.3.2 以上で利用可)_ | String: バッファポインタ + "," + グループ名 | diff --git a/src/gui/curses/gui-curses-mouse.c b/src/gui/curses/gui-curses-mouse.c index 93d7fd125..c62c728a5 100644 --- a/src/gui/curses/gui-curses-mouse.c +++ b/src/gui/curses/gui-curses-mouse.c @@ -89,6 +89,9 @@ gui_mouse_enable () { gui_mouse_enabled = 1; fprintf (stderr, "\033[?1005h\033[?1000h\033[?1002h"); + + (void) hook_signal_send ("mouse_enabled", + WEECHAT_HOOK_SIGNAL_STRING, NULL); } /* @@ -100,6 +103,9 @@ gui_mouse_disable () { gui_mouse_enabled = 0; fprintf (stderr, "\033[?1002l\033[?1000l\033[?1005l"); + + (void) hook_signal_send ("mouse_disabled", + WEECHAT_HOOK_SIGNAL_STRING, NULL); } /* |