| 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_with_hint(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 PURPLE_REQUEST_HINT_CONV, 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 } |
| 130 |
130 |
| 131 void qq_group_reject_application_with_struct(group_member_opt *g) |
131 void qq_group_reject_application_with_struct(group_member_opt *g) |
| 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, |
| 146 PURPLE_REQUEST_HINT_CONV, g); |
146 "chat", g); |
| 147 |
147 |
| 148 g_free(msg1); |
148 g_free(msg1); |
| 149 g_free(msg2); |
149 g_free(msg2); |
| 150 g_free(nombre); |
150 g_free(nombre); |
| 151 } |
151 } |
| 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, |
| 397 PURPLE_REQUEST_HINT_CONV, g, 2, |
397 "chat", g, 2, |
| 398 _("Setup"), G_CALLBACK(qq_group_setup_with_gc_and_uid), |
398 _("Setup"), G_CALLBACK(qq_group_setup_with_gc_and_uid), |
| 399 _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid)); |
399 _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid)); |
| 400 } |
400 } |
| 401 |
401 |
| 402 /* we have to activate group after creation, otherwise the group can not be searched */ |
402 /* we have to activate group after creation, otherwise the group can not be searched */ |