1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

core: move creation of info_hashtable from gui-focus.c to plugin-api-info.c (issue #1257)

This commit is contained in:
Sébastien Helleu
2020-05-16 14:20:18 +02:00
parent a5b851826e
commit a3747fefcd
4 changed files with 14 additions and 18 deletions
+10
View File
@@ -46,6 +46,7 @@
#include "../gui/gui-color.h"
#include "../gui/gui-cursor.h"
#include "../gui/gui-filter.h"
#include "../gui/gui-focus.h"
#include "../gui/gui-history.h"
#include "../gui/gui-hotlist.h"
#include "../gui/gui-key.h"
@@ -1859,6 +1860,15 @@ plugin_api_info_init ()
"passwords before/after to test (optional, 0 by default)"),
&plugin_api_info_totp_validate_cb, NULL, NULL);
/* WeeChat core info_hashtable hooks */
hook_info_hashtable (NULL,
"gui_focus_info",
N_("get focus info"),
/* TRANSLATORS: please do not translate key names (enclosed by quotes) */
N_("\"x\": x coordinate, \"y\": y coordinate"),
N_("see hook_focus"),
&gui_focus_info_hashtable_gui_focus_info_cb, NULL, NULL);
/* WeeChat core infolist hooks */
hook_infolist (NULL, "bar",
N_("list of bars"),