Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/userlist.c @ 26587:0c796a1950b7
Updates for GTK+ 3.0. Remove some deprecated functions (someone should
check those strcasecmp's for me!). Fix all #include for GLib, GTK+, etc. in
libpurple and finch.
Now, libpurple and finch should compile with:
-DG_DISABLE_DEPRECATED
-DG_DISABLE_SINGLE_INCLUDES
-DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED
-DGDK_DISABLE_SINGLE_INCLUDES
-DGTK_DISABLE_SINGLE_INCLUDES
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Tue, 07 Apr 2009 05:22:48 +0000 |
parents | 399776a9ad98 |
children | 10941ac443e1 |
comparison
equal
deleted
inserted
replaced
26585:fb44acfae441 | 26587:0c796a1950b7 |
---|---|
446 { | 446 { |
447 MsnUser *user = (MsnUser *)l->data; | 447 MsnUser *user = (MsnUser *)l->data; |
448 | 448 |
449 g_return_val_if_fail(user->passport != NULL, NULL); | 449 g_return_val_if_fail(user->passport != NULL, NULL); |
450 | 450 |
451 if (!g_strcasecmp(passport, user->passport)){ | 451 if (!g_ascii_strcasecmp(passport, user->passport)){ |
452 return user; | 452 return user; |
453 } | 453 } |
454 } | 454 } |
455 | 455 |
456 return NULL; | 456 return NULL; |
468 | 468 |
469 if (user->uid == NULL) { | 469 if (user->uid == NULL) { |
470 continue; | 470 continue; |
471 } | 471 } |
472 | 472 |
473 if ( !g_strcasecmp(uid, user->uid) ) { | 473 if ( !g_ascii_strcasecmp(uid, user->uid) ) { |
474 return user; | 474 return user; |
475 } | 475 } |
476 } | 476 } |
477 | 477 |
478 return NULL; | 478 return NULL; |
490 | 490 |
491 if (user->phone.mobile == NULL) { | 491 if (user->phone.mobile == NULL) { |
492 continue; | 492 continue; |
493 } | 493 } |
494 | 494 |
495 if (!g_strcasecmp(number, user->phone.mobile)) { | 495 if (!g_ascii_strcasecmp(number, user->phone.mobile)) { |
496 return user; | 496 return user; |
497 } | 497 } |
498 } | 498 } |
499 | 499 |
500 return NULL; | 500 return NULL; |
522 | 522 |
523 for (l = userlist->groups; l != NULL; l = l->next) | 523 for (l = userlist->groups; l != NULL; l = l->next) |
524 { | 524 { |
525 MsnGroup *group = l->data; | 525 MsnGroup *group = l->data; |
526 | 526 |
527 if (!g_strcasecmp(group->id,id)) | 527 if (!g_ascii_strcasecmp(group->id,id)) |
528 return group; | 528 return group; |
529 } | 529 } |
530 | 530 |
531 return NULL; | 531 return NULL; |
532 } | 532 } |
541 | 541 |
542 for (l = userlist->groups; l != NULL; l = l->next) | 542 for (l = userlist->groups; l != NULL; l = l->next) |
543 { | 543 { |
544 MsnGroup *group = l->data; | 544 MsnGroup *group = l->data; |
545 | 545 |
546 if ((group->name != NULL) && !g_strcasecmp(name, group->name)) | 546 if ((group->name != NULL) && !g_ascii_strcasecmp(name, group->name)) |
547 return group; | 547 return group; |
548 } | 548 } |
549 | 549 |
550 return NULL; | 550 return NULL; |
551 } | 551 } |
782 | 782 |
783 for (l = userlist->pending; l != NULL; l = l->next) | 783 for (l = userlist->pending; l != NULL; l = l->next) |
784 { | 784 { |
785 user = (MsnUser *)l->data; | 785 user = (MsnUser *)l->data; |
786 | 786 |
787 if (!g_strcasecmp(who, user->passport)) { | 787 if (!g_ascii_strcasecmp(who, user->passport)) { |
788 userlist->pending = g_list_delete_link(userlist->pending, l); | 788 userlist->pending = g_list_delete_link(userlist->pending, l); |
789 break; | 789 break; |
790 } | 790 } |
791 } | 791 } |
792 | 792 |