summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.adoc1
-rw-r--r--doc/en/weechat_plugin_api.en.adoc2
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc2
-rw-r--r--doc/it/weechat_plugin_api.it.adoc3
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc3
-rw-r--r--src/gui/gui-hotlist.c14
6 files changed, 14 insertions, 11 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc
index 0c82b7b36..2ab6e7e84 100644
--- a/ChangeLog.adoc
+++ b/ChangeLog.adoc
@@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
New features::
+ * core: send buffer pointer (when possible) in signal "hotlist_changed" (issue #1133)
* core: add support of list options in curl (issue #826, issue #219)
* core: allow merge of buffers by name in command /buffer (issue #1108, issue #1159)
* api: add function hashtable_add_from_infolist()
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 2d999b6d8..d1e8500d3 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -9717,7 +9717,7 @@ List of signals sent by WeeChat and plugins:
Filters disabled.
| weechat | hotlist_changed |
- - |
+ Pointer: buffer (can be NULL). |
Hotlist changed.
| weechat | input_paste_pending |
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 441af0e4e..831b039d4 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -9907,7 +9907,7 @@ Liste des signaux envoyés par WeeChat et les extensions :
Filtres désactivés.
| weechat | hotlist_changed |
- - |
+ Pointeur : tampon (peut être NULL). |
La hotlist a changé.
| weechat | input_paste_pending |
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index a9ee3fb2e..2c02fce47 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -10080,8 +10080,9 @@ List of signals sent by WeeChat and plugins:
- |
Filtri disabilitati.
+// TRANSLATION MISSING
| weechat | hotlist_changed |
- - |
+ Pointer: buffer (can be NULL). |
Hotlist modificata.
| weechat | input_paste_pending |
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 5abd1c662..f40553ecf 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -9676,8 +9676,9 @@ WeeChat とプラグインが送信するシグナルのリスト:
- |
フィルタを無効化
+// TRANSLATION MISSING
| weechat | hotlist_changed |
- - |
+ Pointer: バッファ (can be NULL) |
ホットリストが変更された
| weechat | input_paste_pending |
diff --git a/src/gui/gui-hotlist.c b/src/gui/gui-hotlist.c
index fc49ffbdb..182309093 100644
--- a/src/gui/gui-hotlist.c
+++ b/src/gui/gui-hotlist.c
@@ -59,10 +59,10 @@ int gui_add_hotlist = 1; /* 0 is for temporarily disable */
*/
void
-gui_hotlist_changed_signal ()
+gui_hotlist_changed_signal (struct t_gui_buffer *buffer)
{
(void) hook_signal_send ("hotlist_changed",
- WEECHAT_HOOK_SIGNAL_STRING, NULL);
+ WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}
/*
@@ -382,7 +382,7 @@ gui_hotlist_add (struct t_gui_buffer *buffer,
if (ptr_hotlist->priority >= priority)
{
ptr_hotlist->count[priority]++;
- gui_hotlist_changed_signal ();
+ gui_hotlist_changed_signal (buffer);
return ptr_hotlist;
}
@@ -415,7 +415,7 @@ gui_hotlist_add (struct t_gui_buffer *buffer,
gui_hotlist_add_hotlist (&gui_hotlist, &last_gui_hotlist, new_hotlist);
- gui_hotlist_changed_signal ();
+ gui_hotlist_changed_signal (buffer);
return new_hotlist;
}
@@ -471,7 +471,7 @@ gui_hotlist_resort ()
gui_hotlist = new_hotlist;
last_gui_hotlist = last_new_hotlist;
- gui_hotlist_changed_signal ();
+ gui_hotlist_changed_signal (NULL);
}
/*
@@ -510,7 +510,7 @@ gui_hotlist_clear (int level_mask)
}
if (hotlist_changed)
- gui_hotlist_changed_signal ();
+ gui_hotlist_changed_signal (NULL);
}
/*
@@ -562,7 +562,7 @@ gui_hotlist_remove_buffer (struct t_gui_buffer *buffer,
}
if (hotlist_changed)
- gui_hotlist_changed_signal ();
+ gui_hotlist_changed_signal (NULL);
}
/*