comparison finch/gntconv.c @ 32767:2ec94166be43

On the way to hiding the PurpleConnection struct. * Added purple_connection_get_flags() and purple_connection_set_flags() * Use purple_connection_ accessor functions.
author andrew.victor@mxit.com
date Tue, 18 Oct 2011 18:47:48 +0000
parents 32eef2c3314a
children 3e7a7e14af62
comparison
equal deleted inserted replaced
32766:ea2b621fd3ba 32767:2ec94166be43
681 return; 681 return;
682 } 682 }
683 683
684 name = gnt_tree_get_selection_data(GNT_TREE(widget)); 684 name = gnt_tree_get_selection_data(GNT_TREE(widget));
685 685
686 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl); 686 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc));
687 if (prpl_info && PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl_info, get_cb_real_name)) 687 if (prpl_info && PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(prpl_info, get_cb_real_name))
688 realname = prpl_info->get_cb_real_name(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(fc->active_conv)), name); 688 realname = prpl_info->get_cb_real_name(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(fc->active_conv)), name);
689 else 689 else
690 realname = NULL; 690 realname = NULL;
691 purple_conversation_new(PURPLE_CONV_TYPE_IM, account, realname ? realname : name); 691 purple_conversation_new(PURPLE_CONV_TYPE_IM, account, realname ? realname : name);