comparison src/blist.c @ 8710:36b043fe2740

[gaim-migrate @ 9464] Plugins can now add menu items to the buddy context menu (Christopher O'Brien). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 19 Apr 2004 04:20:24 +0000
parents 9ee2542d1104
children 92cbf9713795
comparison
equal deleted inserted replaced
8709:e67d9b67ee56 8710:36b043fe2740
2697 return gaim_blist_node_get_string((GaimBlistNode*)b, key); 2697 return gaim_blist_node_get_string((GaimBlistNode*)b, key);
2698 } 2698 }
2699 2699
2700 /* XXX: end compat crap */ 2700 /* XXX: end compat crap */
2701 2701
2702
2703 GList *gaim_buddy_get_extended_menu(GaimBuddy *b) {
2704 GList *menu = NULL;
2705 gaim_signal_emit(gaim_blist_get_handle(), "buddy-extended-menu",
2706 b, &menu);
2707 return menu;
2708 }
2709
2710
2702 int gaim_blist_get_group_size(GaimGroup *group, gboolean offline) { 2711 int gaim_blist_get_group_size(GaimGroup *group, gboolean offline) {
2703 if(!group) 2712 if(!group)
2704 return 0; 2713 return 0;
2705 2714
2706 return offline ? group->totalsize : group->currentsize; 2715 return offline ? group->totalsize : group->currentsize;
2767 gaim_marshal_VOID__POINTER, NULL, 1, 2776 gaim_marshal_VOID__POINTER, NULL, 1,
2768 gaim_value_new(GAIM_TYPE_SUBTYPE, 2777 gaim_value_new(GAIM_TYPE_SUBTYPE,
2769 GAIM_SUBTYPE_BLIST_BUDDY)); 2778 GAIM_SUBTYPE_BLIST_BUDDY));
2770 2779
2771 gaim_signal_register(handle, "update-idle", gaim_marshal_VOID, NULL, 0); 2780 gaim_signal_register(handle, "update-idle", gaim_marshal_VOID, NULL, 0);
2781 gaim_signal_register(handle, "buddy-extended-menu",
2782 gaim_marshal_VOID__POINTER_POINTER, NULL, 2,
2783 gaim_value_new(GAIM_TYPE_SUBTYPE,
2784 GAIM_SUBTYPE_BLIST_BUDDY),
2785 gaim_value_new(GAIM_TYPE_BOXED, "GList **"));
2772 } 2786 }
2773 2787
2774 void 2788 void
2775 gaim_blist_uninit(void) 2789 gaim_blist_uninit(void)
2776 { 2790 {