comparison libpurple/protocols/qq/group_opt.c @ 19975:6a0d9fa477d4

propagate from branch 'im.pidgin.pidgin' (head 483b6435074838149d6e95b836d4a2d9263f265d) to branch 'org.maemo.garage.pidgin.pidgin.dialog-transience' (head 656aa6cb789d7885b3a72600bf323c104d8ebfd8)
author Gabriel Schulhof <nix@go-nix.ca>
date Wed, 12 Sep 2007 19:11:38 +0000
parents 44b4e8bd759b 83ed57f6873e
children 285bb637a2b7
comparison
equal deleted inserted replaced
19777:0633ecda7ed0 19975:6a0d9fa477d4
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(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 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 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 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 */