Mercurial > pidgin.yaz
comparison libpurple/conversation.c @ 32708:10e5000326a5
Convert code to use the purple_account accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 01 Oct 2011 21:04:35 +0000 |
parents | f75041cb3fec |
children | 3555d352ee4a |
comparison
equal
deleted
inserted
replaced
32707:f75041cb3fec | 32708:10e5000326a5 |
---|---|
524 _purple_conversation_user_equal, g_free, NULL); | 524 _purple_conversation_user_equal, g_free, NULL); |
525 PURPLE_DBUS_REGISTER_POINTER(conv->u.chat, PurpleConvChat); | 525 PURPLE_DBUS_REGISTER_POINTER(conv->u.chat, PurpleConvChat); |
526 | 526 |
527 chats = g_list_prepend(chats, conv); | 527 chats = g_list_prepend(chats, conv); |
528 | 528 |
529 if ((disp = purple_connection_get_display_name(account->gc))) | 529 if ((disp = purple_connection_get_display_name(purple_account_get_connection(account)))) |
530 purple_conv_chat_set_nick(conv->u.chat, disp); | 530 purple_conv_chat_set_nick(conv->u.chat, disp); |
531 else | 531 else |
532 purple_conv_chat_set_nick(conv->u.chat, | 532 purple_conv_chat_set_nick(conv->u.chat, |
533 purple_account_get_username(account)); | 533 purple_account_get_username(account)); |
534 | 534 |
813 account = purple_conversation_get_account(conv); | 813 account = purple_conversation_get_account(conv); |
814 | 814 |
815 if (account == NULL) | 815 if (account == NULL) |
816 return NULL; | 816 return NULL; |
817 | 817 |
818 return account->gc; | 818 return purple_account_get_connection(account); |
819 } | 819 } |
820 | 820 |
821 void | 821 void |
822 purple_conversation_set_title(PurpleConversation *conv, const char *title) | 822 purple_conversation_set_title(PurpleConversation *conv, const char *title) |
823 { | 823 { |