summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-10-01 12:14:03 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-10-01 12:14:03 +0200
commit879a548beae9b02da65526c1016c903d69c0225c (patch)
tree14a1f02d04f6a0a46b8c6b247609ab17678e2798 /src/plugins
parente928bce76cca4c4b21bc1e7b78b8ae032e5109b0 (diff)
downloadweechat-879a548beae9b02da65526c1016c903d69c0225c.zip
buflist: rename completions with items
Completions renamed: - "buflist_all_items" -> "buflist_items" - "buflist_used_items" -> "buflist_items_used"
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/buflist/buflist-command.c2
-rw-r--r--src/plugins/buflist/buflist-completion.c22
2 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/buflist/buflist-command.c b/src/plugins/buflist/buflist-command.c
index f86d0e5fd..dd893804c 100644
--- a/src/plugins/buflist/buflist-command.c
+++ b/src/plugins/buflist/buflist-command.c
@@ -194,6 +194,6 @@ buflist_command_init ()
"buflist.format.tls_version)"),
"enable|disable|toggle"
" || bar"
- " || refresh %(buflist_used_items)|%*",
+ " || refresh %(buflist_items_used)|%*",
&buflist_command_buflist, NULL, NULL);
}
diff --git a/src/plugins/buflist/buflist-completion.c b/src/plugins/buflist/buflist-completion.c
index bf18a3b30..73480c4e7 100644
--- a/src/plugins/buflist/buflist-completion.c
+++ b/src/plugins/buflist/buflist-completion.c
@@ -32,10 +32,10 @@
*/
int
-buflist_completion_all_items_cb (const void *pointer, void *data,
- const char *completion_item,
- struct t_gui_buffer *buffer,
- struct t_gui_completion *completion)
+buflist_completion_items_cb (const void *pointer, void *data,
+ const char *completion_item,
+ struct t_gui_buffer *buffer,
+ struct t_gui_completion *completion)
{
int i;
@@ -60,7 +60,7 @@ buflist_completion_all_items_cb (const void *pointer, void *data,
*/
int
-buflist_completion_used_items_cb (const void *pointer, void *data,
+buflist_completion_items_used_cb (const void *pointer, void *data,
const char *completion_item,
struct t_gui_buffer *buffer,
struct t_gui_completion *completion)
@@ -90,11 +90,11 @@ buflist_completion_used_items_cb (const void *pointer, void *data,
void
buflist_completion_init ()
{
- weechat_hook_completion ("buflist_all_items",
- N_("all buflist bar items"),
- &buflist_completion_all_items_cb, NULL, NULL);
- weechat_hook_completion ("buflist_used_items",
- N_("used buflist bar items (according to option "
+ weechat_hook_completion ("buflist_items",
+ N_("buflist bar items"),
+ &buflist_completion_items_cb, NULL, NULL);
+ weechat_hook_completion ("buflist_items_used",
+ N_("buflist bar items used (according to option "
"buflist.look.use_items)"),
- &buflist_completion_used_items_cb, NULL, NULL);
+ &buflist_completion_items_used_cb, NULL, NULL);
}