comparison libpurple/protocols/qq/group_join.c @ 21099:51cf02dbdb0e

disapproval of revision 'c484d979c4fda4433a9633ff8b69bd8a395c9479'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:30:03 +0000
parents cab348e39751
children fcb848b2d669
comparison
equal deleted inserted replaced
21095:cab348e39751 21099:51cf02dbdb0e
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 "chat", 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 "chat", 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 }