diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c index 2c46a010..77696826 100644 --- a/src/fe-common/core/completion.c +++ b/src/fe-common/core/completion.c @@ -140,7 +140,7 @@ char *word_complete(WINDOW_REC *window, const char *line, int *pos) last_linestart = g_strdup(linestart); want_space = TRUE; - signal_emit("word complete", 5, &complist, window, word, linestart, &want_space); + signal_emit("complete word", 5, &complist, window, word, linestart, &want_space); last_want_space = want_space; } @@ -340,7 +340,7 @@ static char *line_get_command(const char *line, char **args) return cmd; } -static void sig_word_complete(GList **list, WINDOW_REC *window, +static void sig_complete_word(GList **list, WINDOW_REC *window, const char *word, const char *linestart, int *want_space) { const char *newword, *cmdchars; @@ -394,7 +394,7 @@ static void sig_word_complete(GList **list, WINDOW_REC *window, cmd = line_get_command(linestart+1, &args); if (cmd != NULL) { - signal = g_strconcat("command complete ", cmd, NULL); + signal = g_strconcat("complete command ", cmd, NULL); signal_emit(signal, 5, list, window, word, args, want_space); g_free(signal); @@ -408,12 +408,12 @@ void completion_init(void) complist = NULL; last_linestart = NULL; - signal_add("word complete", (SIGNAL_FUNC) sig_word_complete); + signal_add("complete word", (SIGNAL_FUNC) sig_complete_word); } void completion_deinit(void) { free_completions(); - signal_remove("word complete", (SIGNAL_FUNC) sig_word_complete); + signal_remove("complete word", (SIGNAL_FUNC) sig_complete_word); } diff --git a/src/fe-common/irc/dcc/fe-dcc.c b/src/fe-common/irc/dcc/fe-dcc.c index a4b902af..f67add7c 100644 --- a/src/fe-common/irc/dcc/fe-dcc.c +++ b/src/fe-common/irc/dcc/fe-dcc.c @@ -444,7 +444,7 @@ void fe_irc_dcc_init(void) signal_add("dcc unknown reply", (SIGNAL_FUNC) dcc_unknown_reply); signal_add("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed); signal_add("query destroyed", (SIGNAL_FUNC) sig_query_destroyed); - signal_add("command complete dcc send", (SIGNAL_FUNC) sig_dcc_send_complete); + signal_add("complete command dcc send", (SIGNAL_FUNC) sig_dcc_send_complete); command_bind("msg", NULL, (SIGNAL_FUNC) cmd_msg); command_bind("me", NULL, (SIGNAL_FUNC) cmd_me); command_bind("action", NULL, (SIGNAL_FUNC) cmd_action); @@ -477,7 +477,7 @@ void fe_irc_dcc_deinit(void) signal_remove("dcc unknown reply", (SIGNAL_FUNC) dcc_unknown_reply); signal_remove("dcc destroyed", (SIGNAL_FUNC) sig_dcc_destroyed); signal_remove("query destroyed", (SIGNAL_FUNC) sig_query_destroyed); - signal_remove("command complete dcc send", (SIGNAL_FUNC) sig_dcc_send_complete); + signal_remove("complete command dcc send", (SIGNAL_FUNC) sig_dcc_send_complete); command_unbind("msg", (SIGNAL_FUNC) cmd_msg); command_unbind("me", (SIGNAL_FUNC) cmd_me); command_unbind("action", (SIGNAL_FUNC) cmd_action); diff --git a/src/fe-common/irc/irc-completion.c b/src/fe-common/irc/irc-completion.c index 39c67387..45065aca 100644 --- a/src/fe-common/irc/irc-completion.c +++ b/src/fe-common/irc/irc-completion.c @@ -300,7 +300,7 @@ static GList *completion_joinlist(GList *list1, GList *list2) return list1; } -static void sig_word_complete(GList **list, WINDOW_REC *window, +static void sig_complete_word(GList **list, WINDOW_REC *window, const char *word, const char *linestart) { IRC_SERVER_REC *server; @@ -485,7 +485,7 @@ void irc_completion_init(void) complete_tag = g_timeout_add(1000, (GSourceFunc) nick_completion_timeout, NULL); - signal_add("word complete", (SIGNAL_FUNC) sig_word_complete); + signal_add("complete word", (SIGNAL_FUNC) sig_complete_word); signal_add("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_add("command msg", (SIGNAL_FUNC) cmd_msg); signal_add("nicklist remove", (SIGNAL_FUNC) sig_nick_removed); @@ -499,7 +499,7 @@ void irc_completion_deinit(void) { g_source_remove(complete_tag); - signal_remove("word complete", (SIGNAL_FUNC) sig_word_complete); + signal_remove("complete word", (SIGNAL_FUNC) sig_complete_word); signal_remove("event privmsg", (SIGNAL_FUNC) event_privmsg); signal_remove("command msg", (SIGNAL_FUNC) cmd_msg); signal_remove("nicklist remove", (SIGNAL_FUNC) sig_nick_removed);