diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-16 14:20:18 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-16 14:23:09 +0200 |
commit | a3747fefcd07b81a9ea951b5cfdc8107a6189a4a (patch) | |
tree | 4cb103de457c69f48187c1a3ccbcfc9448ed098f /src/gui | |
parent | a5b851826e09228e409a3f864bc2b7266e9eb595 (diff) | |
download | weechat-a3747fefcd07b81a9ea951b5cfdc8107a6189a4a.zip |
core: move creation of info_hashtable from gui-focus.c to plugin-api-info.c (issue #1257)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-focus.c | 16 | ||||
-rw-r--r-- | src/gui/gui-focus.h | 5 |
2 files changed, 4 insertions, 17 deletions
diff --git a/src/gui/gui-focus.c b/src/gui/gui-focus.c index b81056692..52f6e3edc 100644 --- a/src/gui/gui-focus.c +++ b/src/gui/gui-focus.c @@ -316,19 +316,3 @@ gui_focus_info_hashtable_gui_focus_info_cb (const void *pointer, void *data, return ret_hashtable; } - -/* - * Initializes focus hooks. - */ - -void -gui_focus_init () -{ - 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); -}
\ No newline at end of file diff --git a/src/gui/gui-focus.h b/src/gui/gui-focus.h index c684556fc..39dc3b2c6 100644 --- a/src/gui/gui-focus.h +++ b/src/gui/gui-focus.h @@ -45,6 +45,9 @@ extern struct t_gui_focus_info *gui_focus_get_info (int x, int y); extern void gui_focus_free_info (struct t_gui_focus_info *focus_info); extern struct t_hashtable *gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key); -extern void gui_focus_init (); +extern struct t_hashtable *gui_focus_info_hashtable_gui_focus_info_cb (const void *pointer, + void *data, + const char *info_name, + struct t_hashtable *hashtable); #endif /* WEECHAT_GUI_FOCUS_H */ |