1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-20 18:14:46 +02:00

Added new functions and script name completion in script plugins, fixed some bugs in weelist management and script plugins

New functions in script plugins API: gettext, ngettext, list_new, list_add,
list_search, list_casesearch, list_get, list_set, list_next, list_prev,
list_string, list_size, list_remove, list_remove_all, list_free.
This commit is contained in:
Sebastien Helleu
2008-01-16 10:19:25 +01:00
parent e173014aec
commit 697f070725
11 changed files with 2660 additions and 590 deletions
+22 -1
View File
@@ -565,6 +565,25 @@ weechat_python_command_cb (void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_OK;
}
/*
* weechat_python_completion_cb: callback for script completion
*/
int
weechat_python_completion_cb (void *data, char *completion,
struct t_gui_buffer *buffer,
struct t_weelist *list)
{
/* make C compiler happy */
(void) data;
(void) completion;
(void) buffer;
script_completion (weechat_python_plugin, list, python_scripts);
return WEECHAT_RC_OK;
}
/*
* weechat_python_dump_data_cb: dump Python plugin data in WeeChat log file
*/
@@ -621,7 +640,9 @@ weechat_plugin_init (struct t_weechat_plugin *plugin)
}
script_init (weechat_python_plugin,
&weechat_python_command_cb, &weechat_python_dump_data_cb,
&weechat_python_command_cb,
&weechat_python_completion_cb,
&weechat_python_dump_data_cb,
&weechat_python_load_cb);
/* init ok */