comparison libpurple/protocols/jabber/buddy.c @ 28371:51d507e6c8f3

jabber: Add an "Initiate Chat" blist context menu option for GTalk accounts. Patch from Eion Robb with minor cleanup. Closes #10413. Refs #3360. committer: Paul Aurich <paul@darkrain42.org>
author eion@robbmob.com
date Mon, 12 Oct 2009 17:36:12 +0000
parents d9eb51a3a3a2
children fa7f3426ed13
comparison
equal deleted inserted replaced
28368:4a917f91bc05 28371:51d507e6c8f3
36 #include "presence.h" 36 #include "presence.h"
37 #include "useravatar.h" 37 #include "useravatar.h"
38 #include "xdata.h" 38 #include "xdata.h"
39 #include "pep.h" 39 #include "pep.h"
40 #include "adhoccommands.h" 40 #include "adhoccommands.h"
41 #include "google.h"
41 42
42 typedef struct { 43 typedef struct {
43 long idle_seconds; 44 long idle_seconds;
44 } JabberBuddyInfoResource; 45 } JabberBuddyInfoResource;
45 46
1840 PURPLE_CALLBACK(jabber_buddy_unsubscribe), 1841 PURPLE_CALLBACK(jabber_buddy_unsubscribe),
1841 NULL, NULL); 1842 NULL, NULL);
1842 m = g_list_append(m, act); 1843 m = g_list_append(m, act);
1843 } 1844 }
1844 1845
1846 if (js->googletalk) {
1847 act = purple_menu_action_new(_("Initiate _Chat"),
1848 PURPLE_CALLBACK(google_buddy_node_chat),
1849 NULL, NULL);
1850 m = g_list_append(m, act);
1851 }
1852
1845 /* 1853 /*
1846 * This if-condition implements parts of XEP-0100: Gateway Interaction 1854 * This if-condition implements parts of XEP-0100: Gateway Interaction
1847 * 1855 *
1848 * According to stpeter, there is no way to know if a jid on the roster is a gateway without sending a disco#info. 1856 * According to stpeter, there is no way to know if a jid on the roster is a gateway without sending a disco#info.
1849 * However, since the gateway might appear offline to us, we cannot get that information. Therefore, I just assume 1857 * However, since the gateway might appear offline to us, we cannot get that information. Therefore, I just assume