| 119 void qq_group_search_application_with_struct(group_member_opt *g) |
119 void qq_group_search_application_with_struct(group_member_opt *g) |
| 120 { |
120 { |
| 121 g_return_if_fail(g != NULL && g->gc != NULL && g->member > 0); |
121 g_return_if_fail(g != NULL && g->gc != NULL && g->member > 0); |
| 122 |
122 |
| 123 qq_send_packet_get_info(g->gc, g->member, TRUE); /* we want to see window */ |
123 qq_send_packet_get_info(g->gc, g->member, TRUE); /* we want to see window */ |
| 124 purple_request_action(g->gc, NULL, _("Do you want to approve the request?"), "", 2, |
124 purple_request_action_with_hint(g->gc, NULL, _("Do you want to approve the request?"), "", 2, |
| 125 purple_connection_get_account(g->gc), NULL, NULL, |
125 purple_connection_get_account(g->gc), NULL, NULL, |
| 126 "chat", g, 2, |
126 "chat", g, 2, |
| 127 _("Reject"), G_CALLBACK(qq_group_reject_application_with_struct), |
127 _("Reject"), G_CALLBACK(qq_group_reject_application_with_struct), |
| 128 _("Approve"), G_CALLBACK(qq_group_approve_application_with_struct)); |
128 _("Approve"), G_CALLBACK(qq_group_approve_application_with_struct)); |
| 129 } |
129 } |
| 135 |
135 |
| 136 msg1 = g_strdup_printf(_("You rejected %d's request"), g->member); |
136 msg1 = g_strdup_printf(_("You rejected %d's request"), g->member); |
| 137 msg2 = g_strdup(_("Enter your reason:")); |
137 msg2 = g_strdup(_("Enter your reason:")); |
| 138 |
138 |
| 139 nombre = uid_to_purple_name(g->member); |
139 nombre = uid_to_purple_name(g->member); |
| 140 purple_request_input(g->gc, /* title */ NULL, msg1, msg2, |
140 purple_request_input_with_hint(g->gc, /* title */ NULL, msg1, msg2, |
| 141 _("Sorry, you are not my type..."), /* multiline */ TRUE, /* masked */ FALSE, |
141 _("Sorry, you are not my type..."), /* multiline */ TRUE, /* masked */ FALSE, |
| 142 /* hint */ NULL, |
142 /* hint */ NULL, |
| 143 _("Send"), G_CALLBACK(_qq_group_reject_application_real), |
143 _("Send"), G_CALLBACK(_qq_group_reject_application_real), |
| 144 _("Cancel"), G_CALLBACK(_qq_group_do_nothing_with_struct), |
144 _("Cancel"), G_CALLBACK(_qq_group_do_nothing_with_struct), |
| 145 purple_connection_get_account(g->gc), nombre, NULL, |
145 purple_connection_get_account(g->gc), nombre, NULL, |
| 386 |
386 |
| 387 g = g_new0(gc_and_uid, 1); |
387 g = g_new0(gc_and_uid, 1); |
| 388 g->gc = gc; |
388 g->gc = gc; |
| 389 g->uid = internal_group_id; |
389 g->uid = internal_group_id; |
| 390 |
390 |
| 391 purple_request_action(gc, _("QQ Qun Operation"), |
391 purple_request_action_with_hint(gc, _("QQ Qun Operation"), |
| 392 _("You have successfully created a Qun"), |
392 _("You have successfully created a Qun"), |
| 393 _ |
393 _ |
| 394 ("Would you like to set up the Qun details now?"), |
394 ("Would you like to set up the Qun details now?"), |
| 395 1, |
395 1, |
| 396 purple_connection_get_account(gc), NULL, NULL, |
396 purple_connection_get_account(gc), NULL, NULL, |