api: add pointer "_bar_window" in hashtable sent to hook focus callback (closes #1450)

This commit is contained in:
Sébastien Helleu 2020-06-30 20:16:19 +02:00
parent c868a4d3f8
commit b17e1bcf89
6 changed files with 20 additions and 0 deletions

View File

@ -33,6 +33,7 @@ New features::
* core: add default key kbd:[Alt+Shift+N] to toggle nicklist bar
* core: add command line option "--stdout" in weechat-headless binary to log to stdout rather than ~/.weechat/weechat.log (issue #1475, issue #1477)
* core: reload configuration files on SIGHUP (issue #1476)
* api: add pointer "_bar_window" in hashtable sent to hook focus callback (issue #1450)
* api: add info_hashtable "focus_info" (issue #1245, issue #1257)
* api: rename function hook_completion_get_string to completion_get_string and hook_completion_list_add to completion_list_add
* api: add functions completion_new, completion_search and completion_free

View File

@ -12158,6 +12158,10 @@ Content of hashtable sent to callback (keys and values are of type "string"):
| _bar_item_col | Column in bar item. |
"0" ... "n" | "-1"
| _bar_window | Pointer to bar window +
_(WeeChat ≥ 2.9)_. |
"0x12345678" | ""
|===
[NOTE]

View File

@ -12424,6 +12424,10 @@ valeurs sont de type "string") :
| _bar_item_col | Colonne dans l'objet de barre. |
"0" ... "n" | "-1"
| _bar_window | Pointeur vers la fenêtre de barre +
_(WeeChat ≥ 2.9)_. |
"0x12345678" | ""
|===
[NOTE]

View File

@ -12647,6 +12647,11 @@ Contenuto della tabella hash inviata alla callback (tasti e valori sono di tipo
| _bar_item_col | Colonna nell'elemento barra. |
"0" ... "n" | "-1"
// TRANSLATION MISSING
| _bar_window | Pointer to bar window +
_(WeeChat ≥ 2.9)_. |
"0x12345678" | ""
|===
[NOTE]

View File

@ -12156,6 +12156,11 @@ info を使う前にエリアが一致していることを確認して下さい
| _bar_item_col | バー要素中の列座標 |
"0" ... "n" | "-1"
// TRANSLATION MISSING
| _bar_window | Pointer to bar window +
_(WeeChat ≥ 2.9)_. |
"0x12345678" | ""
|===
[NOTE]

View File

@ -241,6 +241,7 @@ gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key)
HASHTABLE_SET_STR_NOT_NULL("_chat_eol", focus_info->chat_eol);
/* bar/item */
HASHTABLE_SET_POINTER("_bar_window", focus_info->bar_window);
if (focus_info->bar_window)
{
HASHTABLE_SET_STR("_bar_name", ((focus_info->bar_window)->bar)->name);