mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 23:52:22 +02:00
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:
parent
15667ec7ff
commit
8b9c4823bf
6 changed files with 228 additions and 191 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue