|
From: Stu T. <st...@no...> - 2004-10-25 18:29:03
|
On Mon, 2004-10-25 at 13:49, PUYDT Julien wrote: > Ah, that is nice ; but how do I add a key/value pair from the ui? I > mean, I just tried to add an uri directly to a contact, but couldn't add > the field by hand. Your plugin would do something like this (after prompting the user for the URI): gaim_blist_node_set_string(node, "gnomemeeting-uri", uri); > So basically I would will need to: > * know how to add "Call" to the contact context menu ; Connect to the "blist-node-extended-menu" signal. > * know how to get the contact associated with the click (probably > straightforward) ; The node is passed to the callback you register when handling the above signal. > Could you point me to some plugin that does things similar to those? I > only studied the timestamp plugin for the moment. I have a basic "Buddy Notes" plugin that allows you to store arbitrary notes for any buddy list node (Group, Chat, Contact, or Buddy) which implements both the right-click menu extension and adding a field to the node here: http://nosnilmot.com/gaim/plugins/buddynote.c My "Last Seen" and "Group IM" plugins also do things with adding plugin specific data to buddy list nodes and right-click menus: http://nosnilmot.com/gaim/plugins/lastseen.c http://nosnilmot.com/gaim/plugins/groupmsg.c Regards, Stu. |