Mercurial > pidgin
diff src/protocols/yahoo/yahoochat.c @ 8584:058efd3cb86f
[gaim-migrate @ 9334]
" This is definitely not the most critical fix, but every
time i see the text "catagory" my eyes bleed a little bit.
This should remedy this unnecessary loss of blood -
hopefully this way i can make my visits to the Red
Cross more frequent." --Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 05 Apr 2004 17:33:34 +0000 |
parents | 3c07b7d0084c |
children | 92cbf9713795 |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoochat.c Mon Apr 05 07:11:24 2004 +0000 +++ b/src/protocols/yahoo/yahoochat.c Mon Apr 05 17:33:34 2004 +0000 @@ -1127,7 +1127,7 @@ return; parent = g_queue_peek_head(s->q); - r = gaim_roomlist_room_new(GAIM_ROOMLIST_ROOMTYPE_CATAGORY, name, parent); + r = gaim_roomlist_room_new(GAIM_ROOMLIST_ROOMTYPE_CATEGORY, name, parent); gaim_roomlist_room_add_field(list, r, (gpointer)name); gaim_roomlist_room_add_field(list, r, (gpointer)id); gaim_roomlist_room_add(list, r); @@ -1188,10 +1188,10 @@ GaimRoomlistRoom *r, *l; if (s->room.type == yrt_yahoo) - r = gaim_roomlist_room_new(GAIM_ROOMLIST_ROOMTYPE_CATAGORY|GAIM_ROOMLIST_ROOMTYPE_ROOM, + r = gaim_roomlist_room_new(GAIM_ROOMLIST_ROOMTYPE_CATEGORY|GAIM_ROOMLIST_ROOMTYPE_ROOM, s->room.name, s->yrl->cat); else - r = gaim_roomlist_room_new(GAIM_ROOMLIST_ROOMTYPE_CATAGORY|GAIM_ROOMLIST_ROOMTYPE_ROOM, + r = gaim_roomlist_room_new(GAIM_ROOMLIST_ROOMTYPE_CATEGORY|GAIM_ROOMLIST_ROOMTYPE_ROOM, s->room.name, s->yrl->ucat); gaim_roomlist_room_add_field(s->list, r, s->room.name); @@ -1384,16 +1384,16 @@ g_list_free(k); } -void yahoo_roomlist_expand_catagory(GaimRoomlist *list, GaimRoomlistRoom *catagory) +void yahoo_roomlist_expand_category(GaimRoomlist *list, GaimRoomlistRoom *category) { struct yahoo_roomlist *yrl; char *url; char *id; - if (catagory->type != GAIM_ROOMLIST_ROOMTYPE_CATAGORY) + if (category->type != GAIM_ROOMLIST_ROOMTYPE_CATEGORY) return; - if (!(id = g_list_nth_data(catagory->fields, 1))) { + if (!(id = g_list_nth_data(category->fields, 1))) { gaim_roomlist_set_in_progress(list, FALSE); return; } @@ -1405,13 +1405,13 @@ yrl = g_new0(struct yahoo_roomlist, 1); yrl->list = list; - yrl->cat = catagory; + yrl->cat = category; list->proto_data = g_list_append(list->proto_data, yrl); gaim_url_parse(url, &(yrl->host), NULL, &(yrl->path)); g_free(url); - yrl->ucat = gaim_roomlist_room_new(GAIM_ROOMLIST_ROOMTYPE_CATAGORY, _("User Rooms"), yrl->cat); + yrl->ucat = gaim_roomlist_room_new(GAIM_ROOMLIST_ROOMTYPE_CATEGORY, _("User Rooms"), yrl->cat); gaim_roomlist_room_add(list, yrl->ucat); if (gaim_proxy_connect(list->account,