diff src/protocols/msn/msn.c @ 5496:b7c0be69c749

[gaim-migrate @ 5892] do_ask_dialog() will soon go the way of the something that goes away a lot. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 23 May 2003 00:48:20 +0000
parents 4bcae8503866
children cce2d7868c78
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Thu May 22 23:59:01 2003 +0000
+++ b/src/protocols/msn/msn.c	Fri May 23 00:48:20 2003 +0000
@@ -112,13 +112,13 @@
 }
 
 static void
-__enable_msn_pages_cb(struct gaim_connection *gc, const char *entry)
+__enable_msn_pages_cb(int id, struct gaim_connection *gc)
 {
 	msn_set_prp(gc, "MOB", "Y");
 }
 
 static void
-__disable_msn_pages_cb(struct gaim_connection *gc, const char *entry)
+__disable_msn_pages_cb(int id, struct gaim_connection *gc)
 {
 	msn_set_prp(gc, "MOB", "N");
 }
@@ -224,15 +224,13 @@
 static void
 msn_show_set_mobile_pages(struct gaim_connection *gc)
 {
-	MsnSession *session = gc->proto_data;
-
-	do_ask_dialog(_("MSN Mobile Pages"),
-				  _("Do you want to allow or disallow people on your buddy "
-					"list to send you mobile pages?"),
-				  gc,
-				  _("Allow"), __enable_msn_pages_cb,
-				  _("Disallow"), __disable_msn_pages_cb,
-				  session->prpl->handle, FALSE);
+	gaim_request_action(gc, NULL, _("Allow MSN Mobile pages?"),
+						_("Do you want to allow or disallow people on "
+						  "your buddy list to send you MSN Mobile pages "
+						  "to your cell phone or other mobile device?"),
+						-1, gc, 2,
+						_("Allow"), G_CALLBACK(__enable_msn_pages_cb),
+						_("Disallow"), G_CALLBACK(__disable_msn_pages_cb));
 }
 
 static void