| 66 PurpleBListNode *gnode; |
66 PurpleBListNode *gnode; |
| 67 |
67 |
| 68 g_list_free(list); |
68 g_list_free(list); |
| 69 list = NULL; |
69 list = NULL; |
| 70 |
70 |
| 71 if (purple_get_blist()->root == NULL) |
71 if (purple_blist_get_buddy_list()->root == NULL) |
| 72 { |
72 { |
| 73 list = g_list_append(list, (gpointer)_("Buddies")); |
73 list = g_list_append(list, (gpointer)_("Buddies")); |
| 74 } |
74 } |
| 75 else |
75 else |
| 76 { |
76 { |
| 77 for (gnode = purple_get_blist()->root; |
77 for (gnode = purple_blist_get_buddy_list()->root; |
| 78 gnode != NULL; |
78 gnode != NULL; |
| 79 gnode = gnode->next) |
79 gnode = gnode->next) |
| 80 { |
80 { |
| 81 if (PURPLE_IS_GROUP(gnode)) |
81 if (PURPLE_IS_GROUP(gnode)) |
| 82 { |
82 { |