| 1153 purple_request_input(NULL, _("Alias Chat"), NULL, |
1153 purple_request_input(NULL, _("Alias Chat"), NULL, |
| 1154 _("Enter an alias for this chat."), |
1154 _("Enter an alias for this chat."), |
| 1155 chat->alias, FALSE, FALSE, NULL, |
1155 chat->alias, FALSE, FALSE, NULL, |
| 1156 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), |
1156 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), |
| 1157 _("Cancel"), NULL, |
1157 _("Cancel"), NULL, |
| 1158 chat->account, NULL, NULL, |
1158 purple_chat_get_account(chat), NULL, NULL, |
| 1159 chat); |
1159 chat); |
| 1160 } |
1160 } |
| 1161 |
1161 |
| 1162 static void |
1162 static void |
| 1163 pidgin_dialogs_remove_contact_cb(PurpleContact *contact) |
1163 pidgin_dialogs_remove_contact_cb(PurpleContact *contact) |
| 1273 } |
1273 } |
| 1274 } |
1274 } |
| 1275 } else if (PURPLE_BLIST_NODE_IS_CHAT(cnode)) { |
1275 } else if (PURPLE_BLIST_NODE_IS_CHAT(cnode)) { |
| 1276 PurpleChat *chat = (PurpleChat *)cnode; |
1276 PurpleChat *chat = (PurpleChat *)cnode; |
| 1277 cnode = cnode->next; |
1277 cnode = cnode->next; |
| 1278 if (purple_account_is_connected(chat->account)) |
1278 if (purple_account_is_connected(purple_chat_get_account(chat))) |
| 1279 purple_blist_remove_chat(chat); |
1279 purple_blist_remove_chat(chat); |
| 1280 } else { |
1280 } else { |
| 1281 cnode = cnode->next; |
1281 cnode = cnode->next; |
| 1282 } |
1282 } |
| 1283 } |
1283 } |
| 1360 name = purple_chat_get_name(chat); |
1360 name = purple_chat_get_name(chat); |
| 1361 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
1361 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
| 1362 name ? name : ""); |
1362 name ? name : ""); |
| 1363 |
1363 |
| 1364 purple_request_action(chat, NULL, _("Remove Chat"), text, 0, |
1364 purple_request_action(chat, NULL, _("Remove Chat"), text, 0, |
| 1365 chat->account, NULL, NULL, |
1365 purple_chat_get_account(chat), NULL, NULL, |
| 1366 chat, 2, |
1366 chat, 2, |
| 1367 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), |
1367 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), |
| 1368 _("Cancel"), NULL); |
1368 _("Cancel"), NULL); |
| 1369 |
1369 |
| 1370 g_free(text); |
1370 g_free(text); |