comparison libpurple/protocols/qq/buddy_opt.c @ 21570:dccfd999ffe7

merge of '76c07fcb434a2a7aa289734bb221c171a376d73b' and 'bad7c4c4e108d186fa8527e487d174e67ae7c0c1'
author Evan Schoenberg <evan.s@dreskin.net>
date Sat, 17 Nov 2007 17:27:48 +0000
parents a20ef7180680
children 217fffe3f46f
comparison
equal deleted inserted replaced
21325:d7a43e142c6e 21570:dccfd999ffe7
207 207
208 msg1 = g_strdup_printf(_("You rejected %d's request"), uid); 208 msg1 = g_strdup_printf(_("You rejected %d's request"), uid);
209 msg2 = g_strdup(_("Input your reason:")); 209 msg2 = g_strdup(_("Input your reason:"));
210 210
211 nombre = uid_to_purple_name(uid); 211 nombre = uid_to_purple_name(uid);
212 purple_request_input_with_hint(gc, _("Reject request"), msg1, msg2, 212 purple_request_input(gc, _("Reject request"), msg1, msg2,
213 _("Sorry, you are not my type..."), TRUE, FALSE, 213 _("Sorry, you are not my type..."), TRUE, FALSE,
214 NULL, _("Reject"), G_CALLBACK(_qq_reject_add_request_real), _("Cancel"), NULL, 214 NULL, _("Reject"), G_CALLBACK(_qq_reject_add_request_real), _("Cancel"), NULL,
215 purple_connection_get_account(gc), nombre, NULL, 215 purple_connection_get_account(gc), nombre, NULL,
216 PURPLE_REQUEST_UI_HINT_BUDDY, g2); 216 g2);
217 g_free(nombre); 217 g_free(nombre);
218 } 218 }
219 219
220 void qq_add_buddy_with_gc_and_uid(gc_and_uid *g) 220 void qq_add_buddy_with_gc_and_uid(gc_and_uid *g)
221 { 221 {
400 purple_blist_remove_buddy(b); 400 purple_blist_remove_buddy(b);
401 g = g_new0(gc_and_uid, 1); 401 g = g_new0(gc_and_uid, 1);
402 g->gc = gc; 402 g->gc = gc;
403 g->uid = for_uid; 403 g->uid = for_uid;
404 msg = g_strdup_printf(_("User %d needs authentication"), for_uid); 404 msg = g_strdup_printf(_("User %d needs authentication"), for_uid);
405 purple_request_input_with_hint(gc, NULL, msg, 405 purple_request_input(gc, NULL, msg,
406 _("Input request here"), /* TODO: Awkward string to fix post string freeze - standardize auth dialogues? -evands */ 406 _("Input request here"), /* TODO: Awkward string to fix post string freeze - standardize auth dialogues? -evands */
407 _("Would you be my friend?"), 407 _("Would you be my friend?"),
408 TRUE, FALSE, NULL, _("Send"), 408 TRUE, FALSE, NULL, _("Send"),
409 G_CALLBACK 409 G_CALLBACK
410 (_qq_send_packet_add_buddy_auth_with_gc_and_uid), 410 (_qq_send_packet_add_buddy_auth_with_gc_and_uid),
411 _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid), 411 _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid),
412 purple_connection_get_account(gc), nombre, NULL, 412 purple_connection_get_account(gc), nombre, NULL,
413 PURPLE_REQUEST_UI_HINT_BUDDY, g); 413 g);
414 g_free(msg); 414 g_free(msg);
415 g_free(nombre); 415 g_free(nombre);
416 } else { /* add OK */ 416 } else { /* add OK */
417 qq_add_buddy_by_recv_packet(gc, for_uid, TRUE, TRUE); 417 qq_add_buddy_by_recv_packet(gc, for_uid, TRUE, TRUE);
418 msg = g_strdup_printf(_("You have added %d to buddy list"), for_uid); 418 msg = g_strdup_printf(_("You have added %d to buddy list"), for_uid);