diff src/blist.c @ 8952:e3f4657fa555

[gaim-migrate @ 9724] " This patch enables plugins to have the ability to provide a list of named call-backs for a GaimGroup in the buddy list. Most of the credit for this should go to Christopher (siege) O'Brien who did the same for the buddy menu (patch 907267). See his excellent description on that patch :)" --Stu Tomlinson committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 16 May 2004 17:43:00 +0000
parents c0f5132fd5a3
children bfc8dea58386
line wrap: on
line diff
--- a/src/blist.c	Sun May 16 15:46:46 2004 +0000
+++ b/src/blist.c	Sun May 16 17:43:00 2004 +0000
@@ -2723,6 +2723,13 @@
 	return menu;
 }
 
+GList *gaim_group_get_extended_menu(GaimGroup *g) {
+	GList *menu = NULL;
+	gaim_signal_emit(gaim_blist_get_handle(), "group-extended-menu",
+		g, &menu);
+	return menu;
+}
+
 
 int gaim_blist_get_group_size(GaimGroup *group, gboolean offline) {
 	if(!group)
@@ -2799,6 +2806,11 @@
 			     gaim_value_new(GAIM_TYPE_SUBTYPE,
 					    GAIM_SUBTYPE_BLIST_BUDDY),
 			     gaim_value_new(GAIM_TYPE_BOXED, "GList **"));
+	gaim_signal_register(handle, "group-extended-menu",
+			     gaim_marshal_VOID__POINTER_POINTER, NULL, 2,
+			     gaim_value_new(GAIM_TYPE_SUBTYPE,
+					    GAIM_SUBTYPE_BLIST_GROUP),
+			     gaim_value_new(GAIM_TYPE_BOXED, "GList **"));
 }
 
 void