| 717 _("Please enter the screen name or alias of the person " |
717 _("Please enter the screen name or alias of the person " |
| 718 "you would like to IM."), |
718 "you would like to IM."), |
| 719 fields, |
719 fields, |
| 720 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), |
720 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), |
| 721 _("Cancel"), NULL, |
721 _("Cancel"), NULL, |
| |
722 NULL, NULL, NULL, |
| 722 NULL); |
723 NULL); |
| 723 } |
724 } |
| 724 |
725 |
| 725 void |
726 void |
| 726 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
727 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
| 854 _("Please enter the screen name or alias of the person " |
855 _("Please enter the screen name or alias of the person " |
| 855 "whose info you would like to view."), |
856 "whose info you would like to view."), |
| 856 fields, |
857 fields, |
| 857 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), |
858 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), |
| 858 _("Cancel"), NULL, |
859 _("Cancel"), NULL, |
| |
860 NULL, NULL, NULL, |
| 859 NULL); |
861 NULL); |
| 860 } |
862 } |
| 861 |
863 |
| 862 static void |
864 static void |
| 863 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) |
865 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) |
| 945 _("Please enter the screen name or alias of the person " |
947 _("Please enter the screen name or alias of the person " |
| 946 "whose log you would like to view."), |
948 "whose log you would like to view."), |
| 947 fields, |
949 fields, |
| 948 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), |
950 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), |
| 949 _("Cancel"), NULL, |
951 _("Cancel"), NULL, |
| |
952 NULL, NULL, NULL, |
| 950 NULL); |
953 NULL); |
| 951 } |
954 } |
| 952 |
955 |
| 953 static void |
956 static void |
| 954 pidgin_dialogs_alias_contact_cb(PurpleContact *contact, const char *new_alias) |
957 pidgin_dialogs_alias_contact_cb(PurpleContact *contact, const char *new_alias) |
| 963 |
966 |
| 964 purple_request_input(NULL, _("Alias Contact"), NULL, |
967 purple_request_input(NULL, _("Alias Contact"), NULL, |
| 965 _("Enter an alias for this contact."), |
968 _("Enter an alias for this contact."), |
| 966 contact->alias, FALSE, FALSE, NULL, |
969 contact->alias, FALSE, FALSE, NULL, |
| 967 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_contact_cb), |
970 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_contact_cb), |
| 968 _("Cancel"), NULL, contact); |
971 _("Cancel"), NULL, |
| |
972 NULL, purple_contact_get_alias(contact), NULL, |
| |
973 contact); |
| 969 } |
974 } |
| 970 |
975 |
| 971 static void |
976 static void |
| 972 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias) |
977 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias) |
| 973 { |
978 { |
| 985 secondary = g_strdup_printf(_("Enter an alias for %s."), buddy->name); |
990 secondary = g_strdup_printf(_("Enter an alias for %s."), buddy->name); |
| 986 |
991 |
| 987 purple_request_input(NULL, _("Alias Buddy"), NULL, |
992 purple_request_input(NULL, _("Alias Buddy"), NULL, |
| 988 secondary, buddy->alias, FALSE, FALSE, NULL, |
993 secondary, buddy->alias, FALSE, FALSE, NULL, |
| 989 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb), |
994 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb), |
| 990 _("Cancel"), NULL, buddy); |
995 _("Cancel"), NULL, |
| |
996 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
| |
997 buddy); |
| 991 |
998 |
| 992 g_free(secondary); |
999 g_free(secondary); |
| 993 } |
1000 } |
| 994 |
1001 |
| 995 static void |
1002 static void |
| 1005 |
1012 |
| 1006 purple_request_input(NULL, _("Alias Chat"), NULL, |
1013 purple_request_input(NULL, _("Alias Chat"), NULL, |
| 1007 _("Enter an alias for this chat."), |
1014 _("Enter an alias for this chat."), |
| 1008 chat->alias, FALSE, FALSE, NULL, |
1015 chat->alias, FALSE, FALSE, NULL, |
| 1009 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), |
1016 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), |
| 1010 _("Cancel"), NULL, chat); |
1017 _("Cancel"), NULL, |
| |
1018 chat->account, NULL, NULL, |
| |
1019 chat); |
| 1011 } |
1020 } |
| 1012 |
1021 |
| 1013 static void |
1022 static void |
| 1014 pidgin_dialogs_remove_contact_cb(PurpleContact *contact) |
1023 pidgin_dialogs_remove_contact_cb(PurpleContact *contact) |
| 1015 { |
1024 { |
| 1047 "You are about to remove the contact containing %s " |
1056 "You are about to remove the contact containing %s " |
| 1048 "and %d other buddies from your buddy list. Do you " |
1057 "and %d other buddies from your buddy list. Do you " |
| 1049 "want to continue?", contact->totalsize - 1), |
1058 "want to continue?", contact->totalsize - 1), |
| 1050 buddy->name, contact->totalsize - 1); |
1059 buddy->name, contact->totalsize - 1); |
| 1051 |
1060 |
| 1052 purple_request_action(contact, NULL, _("Remove Contact"), text, 0, contact, 2, |
1061 purple_request_action(contact, NULL, _("Remove Contact"), text, 0, |
| |
1062 NULL, purple_contact_get_alias(contact), NULL, |
| |
1063 contact, 2, |
| 1053 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb), |
1064 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb), |
| 1054 _("Cancel"), NULL); |
1065 _("Cancel"), |
| |
1066 NULL); |
| 1055 |
1067 |
| 1056 g_free(text); |
1068 g_free(text); |
| 1057 } |
1069 } |
| 1058 } |
1070 } |
| 1059 |
1071 |
| 1085 |
1097 |
| 1086 ggp = g_new(struct _PidginGroupMergeObject, 1); |
1098 ggp = g_new(struct _PidginGroupMergeObject, 1); |
| 1087 ggp->parent = source; |
1099 ggp->parent = source; |
| 1088 ggp->new_name = g_strdup(new_name); |
1100 ggp->new_name = g_strdup(new_name); |
| 1089 |
1101 |
| 1090 purple_request_action(source, NULL, _("Merge Groups"), text, 0, ggp, 2, |
1102 purple_request_action(source, NULL, _("Merge Groups"), text, 0, |
| |
1103 NULL, NULL, NULL, |
| |
1104 ggp, 2, |
| 1091 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), |
1105 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), |
| 1092 _("Cancel"), G_CALLBACK(free_ggmo)); |
1106 _("Cancel"), G_CALLBACK(free_ggmo)); |
| 1093 |
1107 |
| 1094 g_free(text); |
1108 g_free(text); |
| 1095 } |
1109 } |
| 1139 g_return_if_fail(group != NULL); |
1153 g_return_if_fail(group != NULL); |
| 1140 |
1154 |
| 1141 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?"), |
1155 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?"), |
| 1142 group->name); |
1156 group->name); |
| 1143 |
1157 |
| 1144 purple_request_action(group, NULL, _("Remove Group"), text, 0, group, 2, |
1158 purple_request_action(group, NULL, _("Remove Group"), text, 0, |
| |
1159 NULL, NULL, NULL, |
| |
1160 group, 2, |
| 1145 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), |
1161 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), |
| 1146 _("Cancel"), NULL); |
1162 _("Cancel"), NULL); |
| 1147 |
1163 |
| 1148 g_free(text); |
1164 g_free(text); |
| 1149 } |
1165 } |
| 1176 g_return_if_fail(buddy != NULL); |
1192 g_return_if_fail(buddy != NULL); |
| 1177 |
1193 |
| 1178 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), |
1194 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), |
| 1179 buddy->name); |
1195 buddy->name); |
| 1180 |
1196 |
| 1181 purple_request_action(buddy, NULL, _("Remove Buddy"), text, 0, buddy, 2, |
1197 purple_request_action(buddy, NULL, _("Remove Buddy"), text, 0, |
| |
1198 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
| |
1199 buddy, 2, |
| 1182 _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb), |
1200 _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb), |
| 1183 _("Cancel"), NULL); |
1201 _("Cancel"), NULL); |
| 1184 |
1202 |
| 1185 g_free(text); |
1203 g_free(text); |
| 1186 } |
1204 } |
| 1201 |
1219 |
| 1202 name = purple_chat_get_name(chat); |
1220 name = purple_chat_get_name(chat); |
| 1203 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
1221 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
| 1204 name ? name : ""); |
1222 name ? name : ""); |
| 1205 |
1223 |
| 1206 purple_request_action(chat, NULL, _("Remove Chat"), text, 0, chat, 2, |
1224 purple_request_action(chat, NULL, _("Remove Chat"), text, 0, |
| |
1225 chat->account, NULL, NULL, |
| |
1226 chat, 2, |
| 1207 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), |
1227 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), |
| 1208 _("Cancel"), NULL); |
1228 _("Cancel"), NULL); |
| 1209 |
1229 |
| 1210 g_free(text); |
1230 g_free(text); |
| 1211 } |
1231 } |