comparison src/protocols/yahoo/yahoo.c @ 5493:3e8487580024

[gaim-migrate @ 5889] Everything is now moved to the new gaim_request_input(). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 22 May 2003 20:50:30 +0000
parents ad445074d239
children cce2d7868c78
comparison
equal deleted inserted replaced
5492:a75a952d78db 5493:3e8487580024
54 extern char *yahoo_crypt(char *, char *); 54 extern char *yahoo_crypt(char *, char *);
55 55
56 /* for win32 compatability */ 56 /* for win32 compatability */
57 G_MODULE_IMPORT GSList *connections; 57 G_MODULE_IMPORT GSList *connections;
58 58
59 #define YAHOO_DEBUG 59 /* #define YAHOO_DEBUG */
60 60
61 #define USEROPT_MAIL 0 61 #define USEROPT_MAIL 0
62 62
63 #define USEROPT_PAGERHOST 3 63 #define USEROPT_PAGERHOST 3
64 #define YAHOO_PAGER_HOST "scs.yahoo.com" 64 #define YAHOO_PAGER_HOST "scs.yahoo.com"
1182 } 1182 }
1183 1183
1184 return m; 1184 return m;
1185 } 1185 }
1186 1186
1187 static void yahoo_act_id(gpointer data, char *entry) 1187 static void yahoo_act_id(const char *entry, gpointer data)
1188 { 1188 {
1189 struct gaim_connection *gc = data; 1189 struct gaim_connection *gc = data;
1190 struct yahoo_data *yd = gc->proto_data; 1190 struct yahoo_data *yd = gc->proto_data;
1191 1191
1192 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_IDACT, YAHOO_STATUS_AVAILABLE, 0); 1192 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_IDACT, YAHOO_STATUS_AVAILABLE, 0);
1197 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", entry); 1197 g_snprintf(gc->displayname, sizeof(gc->displayname), "%s", entry);
1198 } 1198 }
1199 1199
1200 static void yahoo_show_act_id(struct gaim_connection *gc) 1200 static void yahoo_show_act_id(struct gaim_connection *gc)
1201 { 1201 {
1202 do_prompt_dialog("Activate which ID:", gc->displayname, gc, yahoo_act_id, NULL); 1202 gaim_request_input(gc, NULL, _("Active which ID?"), NULL,
1203 gc->displayname, FALSE,
1204 _("OK"), G_CALLBACK(yahoo_act_id),
1205 _("Cancel"), NULL, gc);
1203 } 1206 }
1204 1207
1205 static GList *yahoo_actions(struct gaim_connection *gc) { 1208 static GList *yahoo_actions(struct gaim_connection *gc) {
1206 GList *m = NULL; 1209 GList *m = NULL;
1207 struct proto_actions_menu *pam; 1210 struct proto_actions_menu *pam;