comparison src/gtkprivacy.c @ 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 c1e44e6f9cb1
children 725413cc9fb9
comparison
equal deleted inserted replaced
8555:e0535ba0d667 8556:267050247da9
310 } 310 }
311 311
312 static void 312 static void
313 clear_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog) 313 clear_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog)
314 { 314 {
315 GSList *l;
316 if (dialog->in_allow_list)
317 l = dialog->account->permit;
318 else
319 l = dialog->account->deny;
320 while (l) {
321 char *user;
322 user = l->data;
323 l = l->next;
324 if (dialog->in_allow_list)
325 gaim_privacy_permit_remove(dialog->account, user, FALSE);
326 else
327 gaim_privacy_deny_remove(dialog->account, user, FALSE);
328 }
315 } 329 }
316 330
317 static void 331 static void
318 close_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog) 332 close_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog)
319 { 333 {