]> jfr.im git - irc/weechat/weechat.git/commitdiff
api: add pointer "_bar_window" in hashtable sent to hook focus callback (closes ...
authorSébastien Helleu <redacted>
Tue, 30 Jun 2020 18:16:19 +0000 (20:16 +0200)
committerSébastien Helleu <redacted>
Tue, 30 Jun 2020 18:16:19 +0000 (20:16 +0200)
ChangeLog.adoc
doc/en/weechat_plugin_api.en.adoc
doc/fr/weechat_plugin_api.fr.adoc
doc/it/weechat_plugin_api.it.adoc
doc/ja/weechat_plugin_api.ja.adoc
src/gui/gui-focus.c

index 42f2fa760b272c62ed22ef8a5c7e59eeab9ed10b..65dd10a0c16b32931ac53ecd851604a49286abe8 100644 (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
index d60de708f74940be9406c57e4d336d6f5d14deec..e9510755bd34fb7f03b2109c91ab81f77d8e95d2 100644 (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]
index 6f0b3251b4f90dab3bd027a3b0f0f0179f5598b4..5bf3393a6735cc1e19088b539f2c3278be58e966 100644 (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]
index b34bf0116922564032864ebcb78f972e48231670..effabdd9e7b401d1dbc94a0db42522d74543c4e1 100644 (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]
index 6613030081519c83969e8906bc4fa1246bb6f68c..6e37c726187b81ad10c8af4014ff7e1852f1785d 100644 (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]
index 52f6e3edc8a95b5e9736bb3e1be8e3fd439f301f..cd8cd94a950c4907aaf8cc3e4800750c76d93cca 100644 (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);