mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 03:03:12 +02:00
core: move creation of info_hashtable from gui-focus.c to plugin-api-info.c (issue #1257)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
+4
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user