# HG changeset patch
# User Luke Schierer <lschiere@pidgin.im>
# Date 1080885551 0
# Node ID 267050247da9d122c3dac0bb89eba64b954a468c
# Parent  e0535ba0d66702357e19742260c028fece64140c
[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>

diff -r e0535ba0d667 -r 267050247da9 src/gtkprivacy.c
--- 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