comparison src/prefs.c @ 1130:d31fad9abb32

[gaim-migrate @ 1140] I know, I shouldn't be working on Thanksgiving, but this was bothering me in the car the whole ride home. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 23 Nov 2000 11:35:55 +0000
parents 1a3dbc0e6529
children fb1490e8f9f8
comparison
equal deleted inserted replaced
1129:282e6b7aef2c 1130:d31fad9abb32
1395 1395
1396 void build_allow_list() 1396 void build_allow_list()
1397 { 1397 {
1398 GtkWidget *label; 1398 GtkWidget *label;
1399 GtkWidget *list_item; 1399 GtkWidget *list_item;
1400 GSList *p = current_deny_gc->permit; 1400 GSList *p;
1401
1402 if (current_is_deny)
1403 return;
1404
1405 p = current_deny_gc->permit;
1401 1406
1402 gtk_list_remove_items(GTK_LIST(allow_list), GTK_LIST(allow_list)->children); 1407 gtk_list_remove_items(GTK_LIST(allow_list), GTK_LIST(allow_list)->children);
1403 1408
1404 while (p) { 1409 while (p) {
1405 label = gtk_label_new(p->data); 1410 label = gtk_label_new(p->data);
1415 1420
1416 void build_block_list() 1421 void build_block_list()
1417 { 1422 {
1418 GtkWidget *label; 1423 GtkWidget *label;
1419 GtkWidget *list_item; 1424 GtkWidget *list_item;
1420 GSList *d = current_deny_gc->deny; 1425 GSList *d;
1421 1426
1422 if (!prefs) return; 1427 if (!current_is_deny)
1428 return;
1429
1430 d = current_deny_gc->deny;
1423 1431
1424 gtk_list_remove_items(GTK_LIST(block_list), GTK_LIST(block_list)->children); 1432 gtk_list_remove_items(GTK_LIST(block_list), GTK_LIST(block_list)->children);
1425 1433
1426 while (d) { 1434 while (d) {
1427 label = gtk_label_new(d->data); 1435 label = gtk_label_new(d->data);