pidgin/gtkconv.c

branch
soc.2013.gobjectification
changeset 34671
ca9b45be7a63
parent 34670
9bd5bd903dc7
child 34675
313dd8fa6b2f
equal deleted inserted replaced
34670:9bd5bd903dc7 34671:ca9b45be7a63
1514 if (purple_chat_conversation_is_ignored_user(chat, name)) 1514 if (purple_chat_conversation_is_ignored_user(chat, name))
1515 purple_chat_conversation_unignore(chat, name); 1515 purple_chat_conversation_unignore(chat, name);
1516 else 1516 else
1517 purple_chat_conversation_ignore(chat, name); 1517 purple_chat_conversation_ignore(chat, name);
1518 1518
1519 pidgin_conv_chat_update_user(purple_chat_conversation_find_buddy(chat, name)); 1519 pidgin_conv_chat_update_user(purple_chat_conversation_find_user(chat, name));
1520 } 1520 }
1521 1521
1522 static void 1522 static void
1523 menu_chat_im_cb(GtkWidget *w, PidginConversation *gtkconv) 1523 menu_chat_im_cb(GtkWidget *w, PidginConversation *gtkconv)
1524 { 1524 {
6843 if ((tag = get_buddy_tag(chat, old_name, 0, FALSE))) 6843 if ((tag = get_buddy_tag(chat, old_name, 0, FALSE)))
6844 g_object_set(G_OBJECT(tag), "style", PANGO_STYLE_ITALIC, NULL); 6844 g_object_set(G_OBJECT(tag), "style", PANGO_STYLE_ITALIC, NULL);
6845 if ((tag = get_buddy_tag(chat, old_name, PURPLE_MESSAGE_NICK, FALSE))) 6845 if ((tag = get_buddy_tag(chat, old_name, PURPLE_MESSAGE_NICK, FALSE)))
6846 g_object_set(G_OBJECT(tag), "style", PANGO_STYLE_ITALIC, NULL); 6846 g_object_set(G_OBJECT(tag), "style", PANGO_STYLE_ITALIC, NULL);
6847 6847
6848 old_chatuser = purple_chat_conversation_find_buddy(chat, old_name); 6848 old_chatuser = purple_chat_conversation_find_user(chat, old_name);
6849 if (!old_chatuser) 6849 if (!old_chatuser)
6850 return; 6850 return;
6851 6851
6852 if (get_iter_from_chatuser(old_chatuser, &iter)) { 6852 if (get_iter_from_chatuser(old_chatuser, &iter)) {
6853 GtkTreeRowReference *ref = purple_chat_user_get_ui_data(old_chatuser); 6853 GtkTreeRowReference *ref = purple_chat_user_get_ui_data(old_chatuser);
6857 purple_chat_user_set_ui_data(old_chatuser, NULL); 6857 purple_chat_user_set_ui_data(old_chatuser, NULL);
6858 } 6858 }
6859 6859
6860 g_return_if_fail(new_alias != NULL); 6860 g_return_if_fail(new_alias != NULL);
6861 6861
6862 new_chatuser = purple_chat_conversation_find_buddy(chat, new_name); 6862 new_chatuser = purple_chat_conversation_find_user(chat, new_name);
6863 6863
6864 add_chat_user_common(chat, new_chatuser, old_name); 6864 add_chat_user_common(chat, new_chatuser, old_name);
6865 } 6865 }
6866 6866
6867 static void 6867 static void

mercurial