Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c Mon Oct 12 08:27:03 2009 +0000 +++ b/libpurple/protocols/jabber/buddy.c Mon Oct 12 17:36:12 2009 +0000 @@ -38,6 +38,7 @@ #include "xdata.h" #include "pep.h" #include "adhoccommands.h" +#include "google.h" typedef struct { long idle_seconds; @@ -1842,6 +1843,13 @@ m = g_list_append(m, act); } + if (js->googletalk) { + act = purple_menu_action_new(_("Initiate _Chat"), + PURPLE_CALLBACK(google_buddy_node_chat), + NULL, NULL); + m = g_list_append(m, act); + } + /* * This if-condition implements parts of XEP-0100: Gateway Interaction *