diff src/protocols/sametime/sametime.c @ 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 2c0f8815aa2e
children 66e424d4bc77
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c	Tue Jan 17 19:28:45 2006 +0000
+++ b/src/protocols/sametime/sametime.c	Tue Jan 17 23:22:19 2006 +0000
@@ -1222,7 +1222,7 @@
   const char *owner;
   GaimGroup *group;
   GaimAccount *acct;
-  GaimBlistNodeAction *act;
+  GaimMenuAction *act;
 
   /* we only want groups */
   if(! GAIM_BLIST_NODE_IS_GROUP(node)) return;
@@ -1238,8 +1238,8 @@
   /* if there's anyone in the group for this acct, offer to invite
      them all to a conference */
   if(gaim_group_on_account(group, acct)) {
-    act = gaim_blist_node_action_new(_("Invite Group to Conference..."),
-				     blist_menu_group_invite, pd, NULL);
+    act = gaim_menu_action_new(_("Invite Group to Conference..."),
+                               blist_menu_group_invite, pd, NULL);
     *menu = g_list_append(*menu, NULL);
   }
 #endif
@@ -1247,8 +1247,8 @@
   /* check if it's a NAB group for this account */
   owner = gaim_blist_node_get_string(node, GROUP_KEY_OWNER);
   if(owner && !strcmp(owner, gaim_account_get_username(acct))) {
-    act = gaim_blist_node_action_new(_("Get Notes Address Book Info"),
-				     blist_menu_nab, pd, NULL);
+    act = gaim_menu_action_new(_("Get Notes Address Book Info"),
+                               blist_menu_nab, pd, NULL);
     *menu = g_list_append(*menu, act);
   }
 }
@@ -3484,15 +3484,15 @@
 
 static GList *mw_prpl_blist_node_menu(GaimBlistNode *node) {
   GList *l = NULL;
-  GaimBlistNodeAction *act;
+  GaimMenuAction *act;
 
   if(! GAIM_BLIST_NODE_IS_BUDDY(node))
     return l;
 
   l = g_list_append(l, NULL);
 
-  act = gaim_blist_node_action_new(_("Invite to Conference..."),
-				   blist_menu_conf, NULL, NULL);
+  act = gaim_menu_action_new(_("Invite to Conference..."),
+                             blist_menu_conf, NULL, NULL);
   l = g_list_append(l, act);
 
   /** note: this never gets called for a GaimGroup, have to use the