| 773 (purple_connections_get_all() != NULL && |
773 (purple_connections_get_all() != NULL && |
| 774 purple_connections_get_all()->next != NULL)); |
774 purple_connections_get_all()->next != NULL)); |
| 775 purple_request_field_set_required(field, TRUE); |
775 purple_request_field_set_required(field, TRUE); |
| 776 purple_request_field_group_add_field(group, field); |
776 purple_request_field_group_add_field(group, field); |
| 777 |
777 |
| 778 purple_request_fields_with_hint(purple_get_blist(), _("New Instant Message"), |
778 purple_request_fields(purple_get_blist(), _("New Instant Message"), |
| 779 NULL, |
779 NULL, |
| 780 _("Please enter the screen name or alias of the person " |
780 _("Please enter the screen name or alias of the person " |
| 781 "you would like to IM."), |
781 "you would like to IM."), |
| 782 fields, |
782 fields, |
| 783 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), |
783 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), |
| 784 _("Cancel"), NULL, |
784 _("Cancel"), NULL, |
| 785 NULL, NULL, NULL, |
785 NULL, NULL, NULL, |
| 786 "blist", NULL); |
786 NULL); |
| 787 } |
787 } |
| 788 |
788 |
| 789 void |
789 void |
| 790 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
790 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
| 791 { |
791 { |
| 912 (purple_connections_get_all() != NULL && |
912 (purple_connections_get_all() != NULL && |
| 913 purple_connections_get_all()->next != NULL)); |
913 purple_connections_get_all()->next != NULL)); |
| 914 purple_request_field_set_required(field, TRUE); |
914 purple_request_field_set_required(field, TRUE); |
| 915 purple_request_field_group_add_field(group, field); |
915 purple_request_field_group_add_field(group, field); |
| 916 |
916 |
| 917 purple_request_fields_with_hint(purple_get_blist(), _("Get User Info"), |
917 purple_request_fields(purple_get_blist(), _("Get User Info"), |
| 918 NULL, |
918 NULL, |
| 919 _("Please enter the screen name or alias of the person " |
919 _("Please enter the screen name or alias of the person " |
| 920 "whose info you would like to view."), |
920 "whose info you would like to view."), |
| 921 fields, |
921 fields, |
| 922 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), |
922 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), |
| 923 _("Cancel"), NULL, |
923 _("Cancel"), NULL, |
| 924 NULL, NULL, NULL, |
924 NULL, NULL, NULL, |
| 925 "blist", NULL); |
925 NULL); |
| 926 } |
926 } |
| 927 |
927 |
| 928 static void |
928 static void |
| 929 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) |
929 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) |
| 930 { |
930 { |
| 948 for (cur = buddies; cur != NULL; cur = cur->next) |
948 for (cur = buddies; cur != NULL; cur = cur->next) |
| 949 { |
949 { |
| 950 PurpleBlistNode *node = cur->data; |
950 PurpleBlistNode *node = cur->data; |
| 951 if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL))) |
951 if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL))) |
| 952 { |
952 { |
| 953 pidgin_log_show_contact_with_parent(GTK_WINDOW(gtkblist->window), (PurpleContact *)node->parent); |
953 pidgin_log_show_contact((PurpleContact *)node->parent); |
| 954 g_slist_free(buddies); |
954 g_slist_free(buddies); |
| 955 pidgin_clear_cursor(gtkblist->window); |
955 pidgin_clear_cursor(gtkblist->window); |
| 956 g_free(username); |
956 g_free(username); |
| 957 return; |
957 return; |
| 958 } |
958 } |
| 959 } |
959 } |
| 960 g_slist_free(buddies); |
960 g_slist_free(buddies); |
| 961 |
961 |
| 962 pidgin_log_show_with_parent(GTK_WINDOW(gtkblist->window), PURPLE_LOG_IM, username, account); |
962 pidgin_log_show(PURPLE_LOG_IM, username, account); |
| 963 |
963 |
| 964 pidgin_clear_cursor(gtkblist->window); |
964 pidgin_clear_cursor(gtkblist->window); |
| 965 } |
965 } |
| 966 |
966 |
| 967 g_free(username); |
967 g_free(username); |
| 1004 (purple_accounts_get_all() != NULL && |
1004 (purple_accounts_get_all() != NULL && |
| 1005 purple_accounts_get_all()->next != NULL)); |
1005 purple_accounts_get_all()->next != NULL)); |
| 1006 purple_request_field_set_required(field, TRUE); |
1006 purple_request_field_set_required(field, TRUE); |
| 1007 purple_request_field_group_add_field(group, field); |
1007 purple_request_field_group_add_field(group, field); |
| 1008 |
1008 |
| 1009 purple_request_fields_with_hint(purple_get_blist(), _("View User Log"), |
1009 purple_request_fields(purple_get_blist(), _("View User Log"), |
| 1010 NULL, |
1010 NULL, |
| 1011 _("Please enter the screen name or alias of the person " |
1011 _("Please enter the screen name or alias of the person " |
| 1012 "whose log you would like to view."), |
1012 "whose log you would like to view."), |
| 1013 fields, |
1013 fields, |
| 1014 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), |
1014 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), |
| 1015 _("Cancel"), NULL, |
1015 _("Cancel"), NULL, |
| 1016 NULL, NULL, NULL, |
1016 NULL, NULL, NULL, |
| 1017 "blist", NULL); |
1017 NULL); |
| 1018 } |
1018 } |
| 1019 |
1019 |
| 1020 static void |
1020 static void |
| 1021 pidgin_dialogs_alias_contact_cb(PurpleContact *contact, const char *new_alias) |
1021 pidgin_dialogs_alias_contact_cb(PurpleContact *contact, const char *new_alias) |
| 1022 { |
1022 { |
| 1026 void |
1026 void |
| 1027 pidgin_dialogs_alias_contact(PurpleContact *contact) |
1027 pidgin_dialogs_alias_contact(PurpleContact *contact) |
| 1028 { |
1028 { |
| 1029 g_return_if_fail(contact != NULL); |
1029 g_return_if_fail(contact != NULL); |
| 1030 |
1030 |
| 1031 purple_request_input_with_hint(NULL, _("Alias Contact"), NULL, |
1031 purple_request_input(NULL, _("Alias Contact"), NULL, |
| 1032 _("Enter an alias for this contact."), |
1032 _("Enter an alias for this contact."), |
| 1033 contact->alias, FALSE, FALSE, NULL, |
1033 contact->alias, FALSE, FALSE, NULL, |
| 1034 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_contact_cb), |
1034 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_contact_cb), |
| 1035 _("Cancel"), NULL, |
1035 _("Cancel"), NULL, |
| 1036 NULL, purple_contact_get_alias(contact), NULL, |
1036 NULL, purple_contact_get_alias(contact), NULL, |
| 1037 "blist", contact); |
1037 contact); |
| 1038 } |
1038 } |
| 1039 |
1039 |
| 1040 static void |
1040 static void |
| 1041 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias) |
1041 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias) |
| 1042 { |
1042 { |
| 1051 |
1051 |
| 1052 g_return_if_fail(buddy != NULL); |
1052 g_return_if_fail(buddy != NULL); |
| 1053 |
1053 |
| 1054 secondary = g_strdup_printf(_("Enter an alias for %s."), buddy->name); |
1054 secondary = g_strdup_printf(_("Enter an alias for %s."), buddy->name); |
| 1055 |
1055 |
| 1056 purple_request_input_with_hint(NULL, _("Alias Buddy"), NULL, |
1056 purple_request_input(NULL, _("Alias Buddy"), NULL, |
| 1057 secondary, buddy->alias, FALSE, FALSE, NULL, |
1057 secondary, buddy->alias, FALSE, FALSE, NULL, |
| 1058 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb), |
1058 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb), |
| 1059 _("Cancel"), NULL, |
1059 _("Cancel"), NULL, |
| 1060 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
1060 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
| 1061 "blist", buddy); |
1061 buddy); |
| 1062 |
1062 |
| 1063 g_free(secondary); |
1063 g_free(secondary); |
| 1064 } |
1064 } |
| 1065 |
1065 |
| 1066 static void |
1066 static void |
| 1072 void |
1072 void |
| 1073 pidgin_dialogs_alias_chat(PurpleChat *chat) |
1073 pidgin_dialogs_alias_chat(PurpleChat *chat) |
| 1074 { |
1074 { |
| 1075 g_return_if_fail(chat != NULL); |
1075 g_return_if_fail(chat != NULL); |
| 1076 |
1076 |
| 1077 purple_request_input_with_hint(NULL, _("Alias Chat"), NULL, |
1077 purple_request_input(NULL, _("Alias Chat"), NULL, |
| 1078 _("Enter an alias for this chat."), |
1078 _("Enter an alias for this chat."), |
| 1079 chat->alias, FALSE, FALSE, NULL, |
1079 chat->alias, FALSE, FALSE, NULL, |
| 1080 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), |
1080 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), |
| 1081 _("Cancel"), NULL, |
1081 _("Cancel"), NULL, |
| 1082 chat->account, NULL, NULL, |
1082 chat->account, NULL, NULL, |
| 1083 "blist", chat); |
1083 chat); |
| 1084 } |
1084 } |
| 1085 |
1085 |
| 1086 static void |
1086 static void |
| 1087 pidgin_dialogs_remove_contact_cb(PurpleContact *contact) |
1087 pidgin_dialogs_remove_contact_cb(PurpleContact *contact) |
| 1088 { |
1088 { |
| 1120 "You are about to remove the contact containing %s " |
1120 "You are about to remove the contact containing %s " |
| 1121 "and %d other buddies from your buddy list. Do you " |
1121 "and %d other buddies from your buddy list. Do you " |
| 1122 "want to continue?", contact->totalsize - 1), |
1122 "want to continue?", contact->totalsize - 1), |
| 1123 buddy->name, contact->totalsize - 1); |
1123 buddy->name, contact->totalsize - 1); |
| 1124 |
1124 |
| 1125 purple_request_action_with_hint(contact, NULL, _("Remove Contact"), text, 0, |
1125 purple_request_action(contact, NULL, _("Remove Contact"), text, 0, |
| 1126 NULL, purple_contact_get_alias(contact), NULL, |
1126 NULL, purple_contact_get_alias(contact), NULL, |
| 1127 "blist", contact, 2, |
1127 contact, 2, |
| 1128 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb), |
1128 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb), |
| 1129 _("Cancel"), |
1129 _("Cancel"), |
| 1130 NULL); |
1130 NULL); |
| 1131 |
1131 |
| 1132 g_free(text); |
1132 g_free(text); |
| 1161 |
1161 |
| 1162 ggp = g_new(struct _PidginGroupMergeObject, 1); |
1162 ggp = g_new(struct _PidginGroupMergeObject, 1); |
| 1163 ggp->parent = source; |
1163 ggp->parent = source; |
| 1164 ggp->new_name = g_strdup(new_name); |
1164 ggp->new_name = g_strdup(new_name); |
| 1165 |
1165 |
| 1166 purple_request_action_with_hint(source, NULL, _("Merge Groups"), text, 0, |
1166 purple_request_action(source, NULL, _("Merge Groups"), text, 0, |
| 1167 NULL, NULL, NULL, |
1167 NULL, NULL, NULL, |
| 1168 "blist", ggp, 2, |
1168 ggp, 2, |
| 1169 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), |
1169 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), |
| 1170 _("Cancel"), G_CALLBACK(free_ggmo)); |
1170 _("Cancel"), G_CALLBACK(free_ggmo)); |
| 1171 |
1171 |
| 1172 g_free(text); |
1172 g_free(text); |
| 1173 } |
1173 } |
| 1217 g_return_if_fail(group != NULL); |
1217 g_return_if_fail(group != NULL); |
| 1218 |
1218 |
| 1219 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?"), |
1219 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?"), |
| 1220 group->name); |
1220 group->name); |
| 1221 |
1221 |
| 1222 purple_request_action_with_hint(group, NULL, _("Remove Group"), text, 0, |
1222 purple_request_action(group, NULL, _("Remove Group"), text, 0, |
| 1223 NULL, NULL, NULL, |
1223 NULL, NULL, NULL, |
| 1224 "blist", group, 2, |
1224 group, 2, |
| 1225 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), |
1225 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), |
| 1226 _("Cancel"), NULL); |
1226 _("Cancel"), NULL); |
| 1227 |
1227 |
| 1228 g_free(text); |
1228 g_free(text); |
| 1229 } |
1229 } |
| 1256 g_return_if_fail(buddy != NULL); |
1256 g_return_if_fail(buddy != NULL); |
| 1257 |
1257 |
| 1258 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), |
1258 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), |
| 1259 buddy->name); |
1259 buddy->name); |
| 1260 |
1260 |
| 1261 purple_request_action_with_hint(buddy, NULL, _("Remove Buddy"), text, 0, |
1261 purple_request_action(buddy, NULL, _("Remove Buddy"), text, 0, |
| 1262 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
1262 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, |
| 1263 "blist", buddy, 2, |
1263 buddy, 2, |
| 1264 _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb), |
1264 _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb), |
| 1265 _("Cancel"), NULL); |
1265 _("Cancel"), NULL); |
| 1266 |
1266 |
| 1267 g_free(text); |
1267 g_free(text); |
| 1268 } |
1268 } |
| 1283 |
1283 |
| 1284 name = purple_chat_get_name(chat); |
1284 name = purple_chat_get_name(chat); |
| 1285 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
1285 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), |
| 1286 name ? name : ""); |
1286 name ? name : ""); |
| 1287 |
1287 |
| 1288 purple_request_action_with_hint(chat, NULL, _("Remove Chat"), text, 0, |
1288 purple_request_action(chat, NULL, _("Remove Chat"), text, 0, |
| 1289 chat->account, NULL, NULL, |
1289 chat->account, NULL, NULL, |
| 1290 "blist", chat, 2, |
1290 chat, 2, |
| 1291 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), |
1291 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), |
| 1292 _("Cancel"), NULL); |
1292 _("Cancel"), NULL); |
| 1293 |
1293 |
| 1294 g_free(text); |
1294 g_free(text); |
| 1295 } |
1295 } |