comparison libpurple/protocols/qq/group_join.c @ 21086:8c9aad9479c0

Removed request stuff - now on pidgin-request-ui-hint
author Gabriel Schulhof <nix@go-nix.ca>
date Wed, 10 Oct 2007 22:57:51 +0000
parents 285bb637a2b7
children cab348e39751
comparison
equal deleted inserted replaced
21077:488796f5ba33 21086:8c9aad9479c0
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 }