I need to add preference into Pidgin to serve my custom menu item as shown in How do I add item to Pidgin menu. How can I achieve this?
相关问题
- Multiple sockets for clients to connect to
- What is the best way to do a search in a large fil
- glDrawElements only draws half a quad
- Index of single bit in long integer (in C) [duplic
- Equivalent of std::pair in C
You need to find function
pidgin_blist_init
inpidgin/gtkblist.c
and add the following line:after
There are also functions to add
int
,string
,none
,string_list
,path
andpath_list
types. Now, we need to associate our custom menu item with custom function. This is done inpidgin_blist_show
. Just add the lineafter
And, finally, add the
_prefs_change_redo_list_groups
function just after the_prefs_change_redo_list
:The
purple_blist_set_groups_visible
will also be published once I develop it, I promise ;)