Mercurial > pidgin
comparison libpurple/protocols/qq/sys_msg.c @ 21347:200afe30b7af
merge of '53b79b2ce557c515c1eb6d234e40ede98328a82e'
and 'f0a7f7c96090e1312d4ca0675a3e047cfb4a2a53'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 16 Nov 2007 23:00:41 +0000 |
parents | fba1f6c3df0b 0ecc58c20d8b |
children | 0cb8d5304f4f |
comparison
equal
deleted
inserted
replaced
21238:dd510f19c844 | 21347:200afe30b7af |
---|---|
81 g_return_if_fail(gc != 0 && uid != 0); | 81 g_return_if_fail(gc != 0 && uid != 0); |
82 | 82 |
83 qq_send_packet_get_info(gc, uid, TRUE); /* we want to see window */ | 83 qq_send_packet_get_info(gc, uid, TRUE); /* we want to see window */ |
84 | 84 |
85 nombre = uid_to_purple_name(uid); | 85 nombre = uid_to_purple_name(uid); |
86 purple_request_action_with_hint | 86 purple_request_action |
87 (gc, NULL, _("Do you want to approve the request?"), "", 2, | 87 (gc, NULL, _("Do you want to approve the request?"), "", 2, |
88 purple_connection_get_account(gc), nombre, NULL, | 88 purple_connection_get_account(gc), nombre, NULL, |
89 PURPLE_REQUEST_HINT_CONV, g, 2, | 89 PURPLE_REQUEST_HINT_CONV, g, 2, |
90 _("Reject"), G_CALLBACK(qq_reject_add_request_with_gc_and_uid), | 90 _("Reject"), G_CALLBACK(qq_reject_add_request_with_gc_and_uid), |
91 _("Approve"), G_CALLBACK(qq_approve_add_request_with_gc_and_uid)); | 91 _("Approve"), G_CALLBACK(qq_approve_add_request_with_gc_and_uid)); |
104 uid = g->uid; | 104 uid = g->uid; |
105 g_return_if_fail(gc != 0 && uid != 0); | 105 g_return_if_fail(gc != 0 && uid != 0); |
106 | 106 |
107 qq_send_packet_get_info(gc, uid, TRUE); /* we want to see window */ | 107 qq_send_packet_get_info(gc, uid, TRUE); /* we want to see window */ |
108 nombre = uid_to_purple_name(uid); | 108 nombre = uid_to_purple_name(uid); |
109 purple_request_action_with_hint | 109 purple_request_action |
110 (gc, NULL, _("Do you want to add this buddy?"), "", 2, | 110 (gc, NULL, _("Do you want to add this buddy?"), "", 2, |
111 purple_connection_get_account(gc), nombre, NULL, | 111 purple_connection_get_account(gc), nombre, NULL, |
112 PURPLE_REQUEST_HINT_BUDDY, g, 2, | 112 PURPLE_REQUEST_HINT_BUDDY, g, 2, |
113 _("Cancel"), NULL, | 113 _("Cancel"), NULL, |
114 _("Add"), G_CALLBACK(qq_add_buddy_with_gc_and_uid)); | 114 _("Add"), G_CALLBACK(qq_add_buddy_with_gc_and_uid)); |
115 g_free(nombre); | 115 g_free(nombre); |
116 } | 116 } |
117 | 117 |
118 /* Send ACK if the sys message needs an ACK */ | 118 /* Send ACK if the sys message needs an ACK */ |
237 /* TODO: this should go through purple_account_request_authorization() */ | 237 /* TODO: this should go through purple_account_request_authorization() */ |
238 message = g_strdup_printf(_("%s wants to add you [%s] as a friend"), from, to); | 238 message = g_strdup_printf(_("%s wants to add you [%s] as a friend"), from, to); |
239 reason = g_strdup_printf(_("Message: %s"), msg_utf8); | 239 reason = g_strdup_printf(_("Message: %s"), msg_utf8); |
240 _qq_sys_msg_log_write(gc, message, from); | 240 _qq_sys_msg_log_write(gc, message, from); |
241 | 241 |
242 purple_request_action_with_hint | 242 purple_request_action |
243 (gc, NULL, message, reason, 2, | 243 (gc, NULL, message, reason, 2, |
244 purple_connection_get_account(gc), name, NULL, | 244 purple_connection_get_account(gc), name, NULL, |
245 PURPLE_REQUEST_HINT_BUDDY, g, 3, | 245 PURPLE_REQUEST_HINT_BUDDY, g, 3, |
246 _("Reject"), | 246 _("Reject"), |
247 G_CALLBACK(qq_reject_add_request_with_gc_and_uid), | 247 G_CALLBACK(qq_reject_add_request_with_gc_and_uid), |