diff src/protocols/msn/msn.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 d8e8feac6cce
children 82e918444965
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Tue Jan 17 19:28:45 2006 +0000
+++ b/src/protocols/msn/msn.c	Tue Jan 17 23:22:19 2006 +0000
@@ -666,7 +666,7 @@
 	MsnUser *user;
 
 	GList *m = NULL;
-	GaimBlistNodeAction *act;
+	GaimMenuAction *act;
 
 	g_return_val_if_fail(buddy != NULL, NULL);
 
@@ -676,8 +676,9 @@
 	{
 		if (user->mobile)
 		{
-			act = gaim_blist_node_action_new(_("Send to Mobile"),
-											 show_send_to_mobile_cb, NULL, NULL);
+			act = gaim_menu_action_new(_("Send to Mobile"),
+			                           GAIM_CALLBACK(show_send_to_mobile_cb),
+			                           NULL, NULL);
 			m = g_list_append(m, act);
 		}
 	}
@@ -685,8 +686,9 @@
 	if (g_ascii_strcasecmp(buddy->name,
 						   gaim_account_get_username(buddy->account)))
 	{
-		act = gaim_blist_node_action_new(_("Initiate _Chat"),
-										 initiate_chat_cb, NULL, NULL);
+		act = gaim_menu_action_new(_("Initiate _Chat"),
+		                           GAIM_CALLBACK(initiate_chat_cb),
+		                           NULL, NULL);
 		m = g_list_append(m, act);
 	}