comparison libpurple/protocols/qq/group_join.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 9a5d140400f1
comparison
equal deleted inserted replaced
21325:d7a43e142c6e 21570:dccfd999ffe7
130 130
131 msg = g_strdup_printf("Group \"%s\" needs authentication\n", group->group_name_utf8); 131 msg = g_strdup_printf("Group \"%s\" needs authentication\n", group->group_name_utf8);
132 g = g_new0(gc_and_uid, 1); 132 g = g_new0(gc_and_uid, 1);
133 g->gc = gc; 133 g->gc = gc;
134 g->uid = group->internal_group_id; 134 g->uid = group->internal_group_id;
135 purple_request_input_with_hint(gc, NULL, msg, 135 purple_request_input(gc, NULL, msg,
136 _("Input request here"), 136 _("Input request here"),
137 _("Would you be my friend?"), TRUE, FALSE, NULL, 137 _("Would you be my friend?"), TRUE, FALSE, NULL,
138 _("Send"), 138 _("Send"),
139 G_CALLBACK(_qq_group_join_auth_with_gc_and_id), 139 G_CALLBACK(_qq_group_join_auth_with_gc_and_id),
140 _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid), 140 _("Cancel"), G_CALLBACK(qq_do_nothing_with_gc_and_uid),
141 purple_connection_get_account(gc), group->group_name_utf8, NULL, 141 purple_connection_get_account(gc), group->group_name_utf8, NULL,
142 PURPLE_REQUEST_UI_HINT_CONV, g); 142 g);
143 g_free(msg); 143 g_free(msg);
144 } 144 }
145 145
146 void qq_send_cmd_group_auth(PurpleConnection *gc, qq_group *group, guint8 opt, guint32 uid, const gchar *reason_utf8) 146 void qq_send_cmd_group_auth(PurpleConnection *gc, qq_group *group, guint8 opt, guint32 uid, const gchar *reason_utf8)
147 { 147 {
354 354
355 g = g_new0(gc_and_uid, 1); 355 g = g_new0(gc_and_uid, 1);
356 g->gc = gc; 356 g->gc = gc;
357 g->uid = internal_group_id; 357 g->uid = internal_group_id;
358 358
359 purple_request_action_with_hint(gc, _("QQ Qun Operation"), 359 purple_request_action(gc, _("QQ Qun Operation"),
360 _("Are you sure you want to leave this Qun?"), 360 _("Are you sure you want to leave this Qun?"),
361 _ 361 _
362 ("Note, if you are the creator, \nthis operation will eventually remove this Qun."), 362 ("Note, if you are the creator, \nthis operation will eventually remove this Qun."),
363 1, 363 1,
364 purple_connection_get_account(gc), NULL, NULL, 364 purple_connection_get_account(gc), NULL, NULL,
365 PURPLE_REQUEST_UI_HINT_CONV, g, 2, _("Cancel"), 365 g, 2, _("Cancel"),
366 G_CALLBACK(qq_do_nothing_with_gc_and_uid), 366 G_CALLBACK(qq_do_nothing_with_gc_and_uid),
367 _("Continue"), G_CALLBACK(_qq_group_exit_with_gc_and_id)); 367 _("Continue"), G_CALLBACK(_qq_group_exit_with_gc_and_id));
368 } 368 }