diff src/blist.h @ 12919:248b8b39c671

[gaim-migrate @ 15272] Replace GaimBlistNodeAction with the more generic GaimMenuAction, this is in preparation for letting the chat room user list have extensible menus like the blist entries do. (I know it's not exactly the prettiest, and the callback isn't exactly type-safe, when we eventually gobjectify everything we can get some safety back by using (GObject, gpointer) but that's for later.) I'm planning to look into merging GaimPluginActions into GaimMenuActions as well. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 17 Jan 2006 23:22:19 +0000
parents e63a80be5227
children 51c6405049a3
line wrap: on
line diff
--- a/src/blist.h	Tue Jan 17 19:28:45 2006 +0000
+++ b/src/blist.h	Tue Jan 17 23:22:19 2006 +0000
@@ -33,8 +33,6 @@
 typedef struct _GaimBlistUiOps GaimBlistUiOps;
 typedef struct _GaimBlistNode GaimBlistNode;
 
-typedef struct _GaimBlistNodeAction GaimBlistNodeAction;
-
 typedef struct _GaimChat GaimChat;
 typedef struct _GaimGroup GaimGroup;
 typedef struct _GaimContact GaimContact;
@@ -184,15 +182,6 @@
 	void (*request_add_group)(void);
 };
 
-
-struct _GaimBlistNodeAction {
-	char *label;
-	void (*callback)(GaimBlistNode *, gpointer);
-	gpointer data;
-	GList *children;
-};
-
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -848,31 +837,14 @@
 
 /*@}*/
 
-
 /**
  * Retrieves the extended menu items for a buddy list node.
  * @param n The blist node for which to obtain the extended menu items.
- * @return  A list of GaimBlistNodeAction items, as harvested by the
+ * @return  A list of GaimMenuAction items, as harvested by the
  *          blist-node-extended-menu signal.
  */
 GList *gaim_blist_node_get_extended_menu(GaimBlistNode *n);
 
-
-/**
- * Creates a new GaimBlistNodeAction.
- * @param label         The text label to display for this action.
- * @param callback      The function to be called when the action is used on
- *                      a selected GaimBlistNode.
- * @param data          Additional data, to be passed to the callback
- * @param children      A GList of GaimBlistNodeActions to be added as a
- *                      submenu of the action.
- * @return              The GaimBlistNodeAction.
- */
-GaimBlistNodeAction *gaim_blist_node_action_new(char *label,
-		void (*callback)(GaimBlistNode *, gpointer), gpointer data,
-		GList *children);
-
-
 /**************************************************************************/
 /** @name UI Registration Functions                                       */
 /**************************************************************************/