mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
window_[add|remove]_item -> window_item_[add|remove]
added window_item_destroy(), window_item_remove() doesn't destroy the item anymore window_find_item()'s first parameter changed from WINDOW_REC to SERVER_REC git-svn-id: http://svn.irssi.org/repos/irssi/trunk@922 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ed550c01d1
commit
df94b9a44c
10 changed files with 62 additions and 58 deletions
|
|
@ -503,7 +503,7 @@ static int sig_autoremove(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static void sig_window_item_remove(WINDOW_REC *window, WI_ITEM_REC *item)
|
||||
static void sig_window_item_destroy(WINDOW_REC *window, WI_ITEM_REC *item)
|
||||
{
|
||||
LOG_REC *log;
|
||||
|
||||
|
|
@ -595,7 +595,7 @@ void fe_log_init(void)
|
|||
command_bind("window log", NULL, (SIGNAL_FUNC) cmd_window_log);
|
||||
command_bind("window logfile", NULL, (SIGNAL_FUNC) cmd_window_logfile);
|
||||
signal_add_first("print text stripped", (SIGNAL_FUNC) sig_printtext_stripped);
|
||||
signal_add("window item remove", (SIGNAL_FUNC) sig_window_item_remove);
|
||||
signal_add("window item destroy", (SIGNAL_FUNC) sig_window_item_destroy);
|
||||
signal_add("window refnum changed", (SIGNAL_FUNC) sig_window_refnum_changed);
|
||||
signal_add("log locked", (SIGNAL_FUNC) sig_log_locked);
|
||||
signal_add("log create failed", (SIGNAL_FUNC) sig_log_create_failed);
|
||||
|
|
@ -620,7 +620,7 @@ void fe_log_deinit(void)
|
|||
command_unbind("window log", (SIGNAL_FUNC) cmd_window_log);
|
||||
command_unbind("window logfile", (SIGNAL_FUNC) cmd_window_logfile);
|
||||
signal_remove("print text stripped", (SIGNAL_FUNC) sig_printtext_stripped);
|
||||
signal_remove("window item remove", (SIGNAL_FUNC) sig_window_item_remove);
|
||||
signal_remove("window item destroy", (SIGNAL_FUNC) sig_window_item_destroy);
|
||||
signal_remove("window refnum changed", (SIGNAL_FUNC) sig_window_refnum_changed);
|
||||
signal_remove("log locked", (SIGNAL_FUNC) sig_log_locked);
|
||||
signal_remove("log create failed", (SIGNAL_FUNC) sig_log_create_failed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue