context menu for plugin
Maulik Gandhi
maulik.a2z at gmail.com
Sun Jul 18 08:38:01 EDT 2010
Hello there,
I am making Pidgin plugin. i want to add my items in context menu(right
click on buddy)
from example plugins i have got
*static void*
*context_menu(PurpleBlistNode *node, GList **menu, gpointer plugin)*
*{*
* **PurpleMenuAction *action;*
*
*
* **if (!PURPLE_BLIST_NODE_IS_BUDDY(node) &&
!PURPLE_BLIST_NODE_IS_CONTACT(node) &&*
* **!(purple_blist_node_get_flags(node) & PURPLE_BLIST_NODE_FLAG_NO_SAVE))*
* **return;*
*
*
* **action = purple_menu_action_new(_("Autoaccept File Transfers..."),*
* **PURPLE_CALLBACK(set_auto_accept_settings), plugin, NULL);*
* **(*menu) = g_list_prepend(*menu, action);*
*}*
*
*
*
*
but i want to add my option at first and want to remove all other options
from context menu..
pls reply as soon as posible...
thank a lot.
--
Maulik Gandhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/support/attachments/20100718/1d3fce3a/attachment-0001.html>
More information about the Support
mailing list