Mercurial > pidgin.yaz
comparison src/protocols/msn/msn.c @ 9246:e20af87d8721
[gaim-migrate @ 10045]
Patch from Felipe Contreras that fixes corrupt buddy icon checksums and
adds a menu item called "Update Buddy Icon."
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 09 Jun 2004 05:32:17 +0000 |
parents | a9151be6fe1a |
children | 7a8aa87164ae |
comparison
equal
deleted
inserted
replaced
9245:9b138ebf9ca8 | 9246:e20af87d8721 |
---|---|
377 gaim_xfer_set_init_fnc(xfer, t_msn_xfer_init); | 377 gaim_xfer_set_init_fnc(xfer, t_msn_xfer_init); |
378 | 378 |
379 gaim_xfer_request(xfer); | 379 gaim_xfer_request(xfer); |
380 } | 380 } |
381 | 381 |
382 static void | |
383 update_buddy_icon_cb(GaimBlistNode *node, gpointer ignored) | |
384 { | |
385 GaimBuddy *buddy; | |
386 GaimConnection *gc; | |
387 | |
388 g_return_if_fail(GAIM_BLIST_NODE_IS_BUDDY(node)); | |
389 | |
390 buddy = (GaimBuddy *) node; | |
391 gc = gaim_account_get_connection(buddy->account); | |
392 | |
393 msn_request_buddy_icon(gc, buddy->name); | |
394 } | |
395 | |
382 /************************************************************************** | 396 /************************************************************************** |
383 * Protocol Plugin ops | 397 * Protocol Plugin ops |
384 **************************************************************************/ | 398 **************************************************************************/ |
385 | 399 |
386 static const char * | 400 static const char * |
515 act = gaim_blist_node_action_new(_("Send to Mobile"), | 529 act = gaim_blist_node_action_new(_("Send to Mobile"), |
516 show_send_to_mobile_cb, NULL); | 530 show_send_to_mobile_cb, NULL); |
517 m = g_list_append(m, act); | 531 m = g_list_append(m, act); |
518 } | 532 } |
519 | 533 |
534 } | |
535 | |
536 if (g_ascii_strcasecmp(buddy->name, | |
537 gaim_account_get_username(buddy->account))) | |
538 { | |
539 act = gaim_blist_node_action_new(_("Initiate Chat"), | |
540 initiate_chat_cb, NULL); | |
541 m = g_list_append(m, act); | |
542 | |
520 act = gaim_blist_node_action_new(_("Send File"), | 543 act = gaim_blist_node_action_new(_("Send File"), |
521 show_send_file_cb, NULL); | 544 show_send_file_cb, NULL); |
522 | 545 |
523 m = g_list_append(m, act); | 546 m = g_list_append(m, act); |
524 } | 547 |
525 | 548 act = gaim_blist_node_action_new(_("Update Buddy Icon"), |
526 if (g_ascii_strcasecmp(buddy->name, | 549 update_buddy_icon_cb, NULL); |
527 gaim_account_get_username(buddy->account))) | 550 |
528 { | |
529 act = gaim_blist_node_action_new(_("Initiate Chat"), | |
530 initiate_chat_cb, NULL); | |
531 m = g_list_append(m, act); | 551 m = g_list_append(m, act); |
532 } | 552 } |
533 | 553 |
534 return m; | 554 return m; |
535 } | 555 } |