Mercurial > pidgin
comparison src/protocols/jabber/jabber.c @ 5498:cce2d7868c78
[gaim-migrate @ 5894]
Bye bye do_ask_dialog()! Mwahahahahhaha!
And wit -> with. What wit with the witty with wit comment, wit you jutht
thaw.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 23 May 2003 02:42:52 +0000 |
parents | ad445074d239 |
children | dfdea22a7153 |
comparison
equal
deleted
inserted
replaced
5497:3c7748b24410 | 5498:cce2d7868c78 |
---|---|
1659 | 1659 |
1660 xmlnode_free(g); | 1660 xmlnode_free(g); |
1661 } | 1661 } |
1662 | 1662 |
1663 /* | 1663 /* |
1664 * Callback from "accept" in do_ask_dialog() invoked by jabber_handles10n() | 1664 * Callback from "accept" in gaim_request_action() invoked |
1665 * by jabber_handles10n() | |
1665 */ | 1666 */ |
1666 static void jabber_accept_add(struct jabber_add_permit *jap) | 1667 static void jabber_accept_add(struct jabber_add_permit *jap) |
1667 { | 1668 { |
1668 if(g_slist_find(connections, jap->gc)) { | 1669 if(g_slist_find(connections, jap->gc)) { |
1669 jabber_accept_deny_add(jap, "subscribed"); | 1670 jabber_accept_deny_add(jap, "subscribed"); |
1679 g_free(jap->user); | 1680 g_free(jap->user); |
1680 g_free(jap); | 1681 g_free(jap); |
1681 } | 1682 } |
1682 | 1683 |
1683 /* | 1684 /* |
1684 * Callback from "deny/cancel" in do_ask_dialog() invoked by jabber_handles10n() | 1685 * Callback from "deny/cancel" in gaim_request_action() invoked |
1686 * by jabber_handles10n() | |
1685 */ | 1687 */ |
1686 static void jabber_deny_add(struct jabber_add_permit *jap) | 1688 static void jabber_deny_add(struct jabber_add_permit *jap) |
1687 { | 1689 { |
1688 if(g_slist_find(connections, jap->gc)) { | 1690 if(g_slist_find(connections, jap->gc)) { |
1689 jabber_accept_deny_add(jap, "unsubscribed"); | 1691 jabber_accept_deny_add(jap, "unsubscribed"); |
1713 gchar *msg = g_strdup_printf(_("The user %s wants to add you to their buddy list."), | 1715 gchar *msg = g_strdup_printf(_("The user %s wants to add you to their buddy list."), |
1714 Jid); | 1716 Jid); |
1715 | 1717 |
1716 jap->gc = GJ_GC(gjc); | 1718 jap->gc = GJ_GC(gjc); |
1717 jap->user = g_strdup(Jid); | 1719 jap->user = g_strdup(Jid); |
1718 do_ask_dialog(msg, NULL, jap, _("Authorize"), jabber_accept_add, _("Deny"), jabber_deny_add, my_protocol->handle, FALSE); | 1720 |
1721 gaim_request_action(jap->gc, NULL, msg, NULL, 0, jap, 2, | |
1722 _("Authorize"), G_CALLBACK(jabber_accept_add), | |
1723 _("Deny"), G_CALLBACK(jabber_deny_add)); | |
1719 | 1724 |
1720 g_free(msg); | 1725 g_free(msg); |
1721 xmlnode_free(g); /* Never needed it here anyway */ | 1726 xmlnode_free(g); /* Never needed it here anyway */ |
1722 return; | 1727 return; |
1723 | 1728 |