Rewritten signal handling code - it wasn't supposed to come before 0.9 irssi

but it doesn't break much things and is needed for Qt port :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2682 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-04-15 13:59:09 +00:00 committed by cras
commit 8b9c4823bf
6 changed files with 228 additions and 191 deletions

View file

@ -179,7 +179,8 @@ void expando_bind(const char *key, int funccount, SIGNAL_FUNC *funcs)
func = arg < funccount ? funcs[arg] : NULL;
if (func == NULL) func = funcs[EXPANDO_ARG_NONE];
signal_add_to_id(MODULE_NAME, 1, rec->signal_ids[n], func);
signal_add_full_id(MODULE_NAME, 1, rec->signal_ids[n],
func, NULL);
}
}
@ -208,7 +209,7 @@ void expando_unbind(const char *key, int funccount, SIGNAL_FUNC *funcs)
func = arg < funccount ? funcs[arg] : NULL;
if (func == NULL) func = funcs[EXPANDO_ARG_NONE];
signal_remove_id(rec->signal_ids[n], func);
signal_remove_id(rec->signal_ids[n], func, NULL);
}
}