| 943 _("Please enter the username or alias of the person " |
943 _("Please enter the username or alias of the person " |
| 944 "you would like to IM."), |
944 "you would like to IM."), |
| 945 fields, |
945 fields, |
| 946 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), |
946 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), |
| 947 _("Cancel"), NULL, |
947 _("Cancel"), NULL, |
| 948 NULL, NULL, NULL, |
948 NULL, NULL); |
| 949 NULL); |
|
| 950 } |
949 } |
| 951 |
950 |
| 952 void |
951 void |
| 953 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
952 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
| 954 { |
953 { |
| 1083 _("Please enter the username or alias of the person " |
1082 _("Please enter the username or alias of the person " |
| 1084 "whose info you would like to view."), |
1083 "whose info you would like to view."), |
| 1085 fields, |
1084 fields, |
| 1086 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), |
1085 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), |
| 1087 _("Cancel"), NULL, |
1086 _("Cancel"), NULL, |
| 1088 NULL, NULL, NULL, |
1087 NULL, NULL); |
| 1089 NULL); |
|
| 1090 } |
1088 } |
| 1091 |
1089 |
| 1092 static void |
1090 static void |
| 1093 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) |
1091 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) |
| 1094 { |
1092 { |
| 1175 _("Please enter the username or alias of the person " |
1173 _("Please enter the username or alias of the person " |
| 1176 "whose log you would like to view."), |
1174 "whose log you would like to view."), |
| 1177 fields, |
1175 fields, |
| 1178 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), |
1176 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), |
| 1179 _("Cancel"), NULL, |
1177 _("Cancel"), NULL, |
| 1180 NULL, NULL, NULL, |
1178 NULL, NULL); |
| 1181 NULL); |
|
| 1182 } |
1179 } |
| 1183 |
1180 |
| 1184 static void |
1181 static void |
| 1185 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias) |
1182 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias) |
| 1186 { |
1183 { |
| 1199 |
1196 |
| 1200 purple_request_input(NULL, _("Alias Buddy"), NULL, |
1197 purple_request_input(NULL, _("Alias Buddy"), NULL, |
| 1201 secondary, purple_buddy_get_local_alias(buddy), FALSE, FALSE, NULL, |
1198 secondary, purple_buddy_get_local_alias(buddy), FALSE, FALSE, NULL, |
| 1202 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb), |
1199 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb), |
| 1203 _("Cancel"), NULL, |
1200 _("Cancel"), NULL, |
| 1204 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
1201 purple_request_cpar_from_account(purple_buddy_get_account(buddy)), |
| 1205 buddy); |
1202 buddy); |
| 1206 |
1203 |
| 1207 g_free(secondary); |
1204 g_free(secondary); |
| 1208 } |
1205 } |
| 1209 |
1206 |
| 1225 purple_request_input(NULL, _("Alias Chat"), NULL, |
1222 purple_request_input(NULL, _("Alias Chat"), NULL, |
| 1226 _("Enter an alias for this chat."), |
1223 _("Enter an alias for this chat."), |
| 1227 alias, FALSE, FALSE, NULL, |
1224 alias, FALSE, FALSE, NULL, |
| 1228 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), |
1225 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), |
| 1229 _("Cancel"), NULL, |
1226 _("Cancel"), NULL, |
| 1230 purple_chat_get_account(chat), NULL, NULL, |
1227 purple_request_cpar_from_account(purple_chat_get_account(chat)), |
| 1231 chat); |
1228 chat); |
| 1232 |
1229 |
| 1233 g_free(alias); |
1230 g_free(alias); |
| 1234 } |
1231 } |
| 1235 |
1232 |
| 1272 "and %d other buddies from your buddy list. Do you " |
1269 "and %d other buddies from your buddy list. Do you " |
| 1273 "want to continue?", contact_size - 1), |
1270 "want to continue?", contact_size - 1), |
| 1274 purple_buddy_get_name(buddy), contact_size - 1); |
1271 purple_buddy_get_name(buddy), contact_size - 1); |
| 1275 |
1272 |
| 1276 purple_request_action(contact, NULL, _("Remove Contact"), text, 0, |
1273 purple_request_action(contact, NULL, _("Remove Contact"), text, 0, |
| 1277 NULL, purple_contact_get_alias(contact), NULL, |
1274 NULL, |
| 1278 contact, 2, |
1275 contact, 2, |
| 1279 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb), |
1276 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb), |
| 1280 _("Cancel"), |
1277 _("Cancel"), |
| 1281 NULL); |
1278 NULL); |
| 1282 |
1279 |
| 1313 ggp = g_new(struct _PidginGroupMergeObject, 1); |
1310 ggp = g_new(struct _PidginGroupMergeObject, 1); |
| 1314 ggp->parent = source; |
1311 ggp->parent = source; |
| 1315 ggp->new_name = g_strdup(new_name); |
1312 ggp->new_name = g_strdup(new_name); |
| 1316 |
1313 |
| 1317 purple_request_action(source, NULL, _("Merge Groups"), text, 0, |
1314 purple_request_action(source, NULL, _("Merge Groups"), text, 0, |
| 1318 NULL, NULL, NULL, |
1315 NULL, |
| 1319 ggp, 2, |
1316 ggp, 2, |
| 1320 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), |
1317 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), |
| 1321 _("Cancel"), G_CALLBACK(free_ggmo)); |
1318 _("Cancel"), G_CALLBACK(free_ggmo)); |
| 1322 |
1319 |
| 1323 g_free(text); |
1320 g_free(text); |
| 1369 |
1366 |
| 1370 text = g_strdup_printf(_("You are about to remove the group %s and all its members from your buddy list. Do you want to continue?"), |
1367 text = g_strdup_printf(_("You are about to remove the group %s and all its members from your buddy list. Do you want to continue?"), |
| 1371 purple_group_get_name(group)); |
1368 purple_group_get_name(group)); |
| 1372 |
1369 |
| 1373 purple_request_action(group, NULL, _("Remove Group"), text, 0, |
1370 purple_request_action(group, NULL, _("Remove Group"), text, 0, |
| 1374 NULL, NULL, NULL, |
1371 NULL, |
| 1375 group, 2, |
1372 group, 2, |
| 1376 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), |
1373 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), |
| 1377 _("Cancel"), NULL); |
1374 _("Cancel"), NULL); |
| 1378 |
1375 |
| 1379 g_free(text); |
1376 g_free(text); |
| 1408 |
1405 |
| 1409 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), |
1406 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), |
| 1410 purple_buddy_get_name(buddy)); |
1407 purple_buddy_get_name(buddy)); |
| 1411 |
1408 |
| 1412 purple_request_action(buddy, NULL, _("Remove Buddy"), text, 0, |
1409 purple_request_action(buddy, NULL, _("Remove Buddy"), text, 0, |
| 1413 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
1410 purple_request_cpar_from_account( |
| 1414 buddy, 2, |
1411 purple_buddy_get_account(buddy)), |
| 1415 _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb), |
1412 buddy, 2, _("_Remove Buddy"), |
| 1416 _("Cancel"), NULL); |
1413 G_CALLBACK(pidgin_dialogs_remove_buddy_cb), _("Cancel"), NULL); |
| 1417 |
1414 |
| 1418 g_free(text); |
1415 g_free(text); |
| 1419 } |
1416 } |
| 1420 |
1417 |
| 1421 static void |
1418 static void |
| 1435 name = purple_chat_get_name(chat); |
1432 name = purple_chat_get_name(chat); |
| 1436 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
1433 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
| 1437 name ? name : ""); |
1434 name ? name : ""); |
| 1438 |
1435 |
| 1439 purple_request_action(chat, NULL, _("Remove Chat"), text, 0, |
1436 purple_request_action(chat, NULL, _("Remove Chat"), text, 0, |
| 1440 purple_chat_get_account(chat), NULL, NULL, |
1437 purple_request_cpar_from_account(purple_chat_get_account(chat)), |
| 1441 chat, 2, |
1438 chat, 2, _("_Remove Chat"), |
| 1442 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), |
1439 G_CALLBACK(pidgin_dialogs_remove_chat_cb), _("Cancel"), NULL); |
| 1443 _("Cancel"), NULL); |
|
| 1444 |
1440 |
| 1445 g_free(text); |
1441 g_free(text); |
| 1446 } |
1442 } |