Mercurial > pidgin
comparison src/protocols/silc/silc.c @ 9030:7ab20f829190
[gaim-migrate @ 9806]
Siege updated the code for creating right-click menu's for
buddies, chats, groups, etc. It uses more stuff from the blist
API and less stuff from multi.h. It also combines the code
for right-click menus for chats, buddies, etc. (all types of
blist nodes). So PRPLs and plugins can easily add right-click
menu options to anything in the buddy list in a clean way.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 May 2004 17:27:45 +0000 |
parents | 85caba2f820a |
children | 095731b5e4f6 |
comparison
equal
deleted
inserted
replaced
9029:697e169dac12 | 9030:7ab20f829190 |
---|---|
878 silc_free(clients); | 878 silc_free(clients); |
879 return ret; | 879 return ret; |
880 } | 880 } |
881 | 881 |
882 | 882 |
883 GList *silcgaim_blist_node_menu(GaimBlistNode *node) { | |
884 /* split this single menu building function back into the two | |
885 original: one for buddies and one for chats */ | |
886 | |
887 if(GAIM_BLIST_NODE_IS_CHAT(node)) { | |
888 return silcgaim_chat_menu((GaimChar *) node); | |
889 } else if(GAIM_BLIST_NODE_IS_BUDDY(node)) { | |
890 return silcgaim_buddy_menu((GaimBuddy *) node); | |
891 } else { | |
892 return_val_if_reached(NULL); | |
893 } | |
894 } | |
895 | |
896 | |
883 /************************** Plugin Initialization ****************************/ | 897 /************************** Plugin Initialization ****************************/ |
884 | 898 |
885 static GaimPluginPrefFrame * | 899 static GaimPluginPrefFrame * |
886 silcgaim_pref_frame(GaimPlugin *plugin) | 900 silcgaim_pref_frame(GaimPlugin *plugin) |
887 { | 901 { |
947 silcgaim_list_icon, | 961 silcgaim_list_icon, |
948 silcgaim_list_emblems, | 962 silcgaim_list_emblems, |
949 silcgaim_status_text, | 963 silcgaim_status_text, |
950 silcgaim_tooltip_text, | 964 silcgaim_tooltip_text, |
951 silcgaim_away_states, | 965 silcgaim_away_states, |
952 silcgaim_buddy_menu, | 966 silcgaim_blist_node_menu, |
953 silcgaim_chat_info, | 967 silcgaim_chat_info, |
954 silcgaim_login, | 968 silcgaim_login, |
955 silcgaim_close, | 969 silcgaim_close, |
956 silcgaim_send_im, | 970 silcgaim_send_im, |
957 NULL, | 971 NULL, |
991 NULL, | 1005 NULL, |
992 silcgaim_chat_set_topic, | 1006 silcgaim_chat_set_topic, |
993 NULL, | 1007 NULL, |
994 silcgaim_roomlist_get_list, | 1008 silcgaim_roomlist_get_list, |
995 silcgaim_roomlist_cancel, | 1009 silcgaim_roomlist_cancel, |
996 NULL, | 1010 NULL |
997 silcgaim_chat_menu | |
998 }; | 1011 }; |
999 | 1012 |
1000 static GaimPluginInfo info = | 1013 static GaimPluginInfo info = |
1001 { | 1014 { |
1002 GAIM_PLUGIN_API_VERSION, /**< api_version */ | 1015 GAIM_PLUGIN_API_VERSION, /**< api_version */ |