Mercurial > pidgin
diff src/protocols/jabber/buddy.c @ 10662:54ac161a876e
[gaim-migrate @ 12199]
Plugins can now add submenus to the right-click menu of a blist node by passing a GList of actions to gaim_blist_node_action_new. I'm thinking about making GaimBlistNodeActions more like plugin prefs so that plugins can create radio and check menu items as well. We'll see if I can do that and not make it ugly/suck.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Mon, 07 Mar 2005 02:19:09 +0000 |
parents | 1a97d5e88d12 |
children | 72a5babfa8b4 |
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c Mon Mar 07 01:25:05 2005 +0000 +++ b/src/protocols/jabber/buddy.c Mon Mar 07 02:19:09 2005 +0000 @@ -1016,23 +1016,23 @@ if(js->protocol_version == JABBER_PROTO_0_9 /* && NOT ME */) { if(jb->invisible & JABBER_INVIS_BUDDY) { act = gaim_blist_node_action_new(_("Un-hide From"), - jabber_buddy_make_visible, NULL); + jabber_buddy_make_visible, NULL, NULL); } else { act = gaim_blist_node_action_new(_("Temporarily Hide From"), - jabber_buddy_make_invisible, NULL); + jabber_buddy_make_invisible, NULL, NULL); } m = g_list_append(m, act); } if(jb->subscription & JABBER_SUB_FROM /* && NOT ME */) { act = gaim_blist_node_action_new(_("Cancel Presence Notification"), - jabber_buddy_cancel_presence_notification, NULL); + jabber_buddy_cancel_presence_notification, NULL, NULL); m = g_list_append(m, act); } if(!(jb->subscription & JABBER_SUB_TO)) { act = gaim_blist_node_action_new(_("(Re-)Request authorization"), - jabber_buddy_rerequest_auth, NULL); + jabber_buddy_rerequest_auth, NULL, NULL); m = g_list_append(m, act); } else /* if(NOT ME) */{ @@ -1040,7 +1040,7 @@ /* shouldn't this just happen automatically when the buddy is removed? */ act = gaim_blist_node_action_new(_("Unsubscribe"), - jabber_buddy_unsubscribe, NULL); + jabber_buddy_unsubscribe, NULL, NULL); m = g_list_append(m, act); }