Mercurial > pidgin.yaz
changeset 14829:945936eaa74e
[gaim-migrate @ 17596]
This was supposed to be part of last commit. This allows registering an action without specifying a default binding.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 28 Oct 2006 06:09:20 +0000 |
parents | 91a89d5ef714 |
children | 9ee68ce424ec |
files | console/libgnt/gntwidget.c |
diffstat | 1 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/console/libgnt/gntwidget.c Sat Oct 28 06:01:30 2006 +0000 +++ b/console/libgnt/gntwidget.c Sat Oct 28 06:09:20 2006 +0000 @@ -729,14 +729,16 @@ g_hash_table_replace(klass->actions, g_strdup(name), action); - list = NULL; - va_start(args, trigger); - while ((data = va_arg(args, void *))) { - list = g_list_append(list, data); + if (trigger) { + list = NULL; + va_start(args, trigger); + while ((data = va_arg(args, void *))) { + list = g_list_append(list, data); + } + va_end(args); + + register_binding(klass, name, trigger, list); } - va_end(args); - - register_binding(klass, name, trigger, list); } void gnt_widget_action_free(GntWidgetAction *action)