Mercurial > pidgin
changeset 8556:267050247da9
[gaim-migrate @ 9300]
" The "Clear" callback in the privacy dialog wasn't
implemented.
I've implemented it :-)
The only downer is that if you have a very long list in
MSN, it might disconnect you because you're flooding :)"
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 02 Apr 2004 05:59:11 +0000 |
parents | e0535ba0d667 |
children | fcb03dabbc53 |
files | src/gtkprivacy.c |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkprivacy.c Fri Apr 02 03:25:48 2004 +0000 +++ b/src/gtkprivacy.c Fri Apr 02 05:59:11 2004 +0000 @@ -312,6 +312,20 @@ static void clear_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog) { + GSList *l; + if (dialog->in_allow_list) + l = dialog->account->permit; + else + l = dialog->account->deny; + while (l) { + char *user; + user = l->data; + l = l->next; + if (dialog->in_allow_list) + gaim_privacy_permit_remove(dialog->account, user, FALSE); + else + gaim_privacy_deny_remove(dialog->account, user, FALSE); + } } static void