diff plugins/gevolution/gevolution.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 f23ebb7b2dfd
children 0aa231ebbfd5
line wrap: on
line diff
--- a/plugins/gevolution/gevolution.c	Tue Jan 17 19:28:45 2006 +0000
+++ b/plugins/gevolution/gevolution.c	Tue Jan 17 23:22:19 2006 +0000
@@ -273,7 +273,7 @@
 static void
 blist_node_extended_menu_cb(GaimBlistNode *node, GList **menu)
 {
-	GaimBlistNodeAction *act;
+	GaimMenuAction *act;
 	GaimBuddy *buddy;
 
 	if (!GAIM_BLIST_NODE_IS_BUDDY(node))
@@ -283,13 +283,13 @@
 
 	if (gevo_prpl_is_supported(buddy->account, buddy))
 	{
-		act = gaim_blist_node_action_new(_("Add to Address Book"),
-		                                 menu_item_activate_cb,
-		                                 NULL, NULL);
+		act = gaim_menu_action_new(_("Add to Address Book"),
+		                           GAIM_CALLBACK(menu_item_activate_cb),
+		                           NULL, NULL);
 		*menu = g_list_append(*menu, act);
-		act = gaim_blist_node_action_new(_("Send E-Mail"),
-		                                 menu_item_send_mail_activate_cb,
-		                                 NULL, NULL);
+		act = gaim_menu_action_new(_("Send E-Mail"),
+		                           GAIM_CALLBACK(menu_item_send_mail_activate_cb),
+		                           NULL, NULL);
 		*menu = g_list_append(*menu, act);
 	}
 }