comparison libpurple/protocols/msn/msn.c @ 21335:d4f95419be45

disapproval of revision 'b6ee8d925e8e7670de77e6283963fa151ea0ed77'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:01:12 +0000
parents a20ef7180680
children 8ae227dca885
comparison
equal deleted inserted replaced
21244:a20ef7180680 21335:d4f95419be45
287 "see you as."), 287 "see you as."),
288 purple_connection_get_display_name(gc), FALSE, FALSE, NULL, 288 purple_connection_get_display_name(gc), FALSE, FALSE, NULL,
289 _("OK"), G_CALLBACK(msn_act_id), 289 _("OK"), G_CALLBACK(msn_act_id),
290 _("Cancel"), NULL, 290 _("Cancel"), NULL,
291 purple_connection_get_account(gc), NULL, NULL, 291 purple_connection_get_account(gc), NULL, NULL,
292 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); 292 PURPLE_REQUEST_HINT_ACCOUNT, gc);
293 } 293 }
294 294
295 static void 295 static void
296 msn_show_set_home_phone(PurplePluginAction *action) 296 msn_show_set_home_phone(PurplePluginAction *action)
297 { 297 {
304 purple_request_input_with_hint(gc, NULL, _("Set your home phone number."), NULL, 304 purple_request_input_with_hint(gc, NULL, _("Set your home phone number."), NULL,
305 msn_user_get_home_phone(session->user), FALSE, FALSE, NULL, 305 msn_user_get_home_phone(session->user), FALSE, FALSE, NULL,
306 _("OK"), G_CALLBACK(msn_set_home_phone_cb), 306 _("OK"), G_CALLBACK(msn_set_home_phone_cb),
307 _("Cancel"), NULL, 307 _("Cancel"), NULL,
308 purple_connection_get_account(gc), NULL, NULL, 308 purple_connection_get_account(gc), NULL, NULL,
309 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); 309 PURPLE_REQUEST_HINT_ACCOUNT, gc);
310 } 310 }
311 311
312 static void 312 static void
313 msn_show_set_work_phone(PurplePluginAction *action) 313 msn_show_set_work_phone(PurplePluginAction *action)
314 { 314 {
321 purple_request_input_with_hint(gc, NULL, _("Set your work phone number."), NULL, 321 purple_request_input_with_hint(gc, NULL, _("Set your work phone number."), NULL,
322 msn_user_get_work_phone(session->user), FALSE, FALSE, NULL, 322 msn_user_get_work_phone(session->user), FALSE, FALSE, NULL,
323 _("OK"), G_CALLBACK(msn_set_work_phone_cb), 323 _("OK"), G_CALLBACK(msn_set_work_phone_cb),
324 _("Cancel"), NULL, 324 _("Cancel"), NULL,
325 purple_connection_get_account(gc), NULL, NULL, 325 purple_connection_get_account(gc), NULL, NULL,
326 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); 326 PURPLE_REQUEST_HINT_ACCOUNT, gc);
327 } 327 }
328 328
329 static void 329 static void
330 msn_show_set_mobile_phone(PurplePluginAction *action) 330 msn_show_set_mobile_phone(PurplePluginAction *action)
331 { 331 {
338 purple_request_input_with_hint(gc, NULL, _("Set your mobile phone number."), NULL, 338 purple_request_input_with_hint(gc, NULL, _("Set your mobile phone number."), NULL,
339 msn_user_get_mobile_phone(session->user), FALSE, FALSE, NULL, 339 msn_user_get_mobile_phone(session->user), FALSE, FALSE, NULL,
340 _("OK"), G_CALLBACK(msn_set_mobile_phone_cb), 340 _("OK"), G_CALLBACK(msn_set_mobile_phone_cb),
341 _("Cancel"), NULL, 341 _("Cancel"), NULL,
342 purple_connection_get_account(gc), NULL, NULL, 342 purple_connection_get_account(gc), NULL, NULL,
343 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc); 343 PURPLE_REQUEST_HINT_ACCOUNT, gc);
344 } 344 }
345 345
346 static void 346 static void
347 msn_show_set_mobile_pages(PurplePluginAction *action) 347 msn_show_set_mobile_pages(PurplePluginAction *action)
348 { 348 {
354 _("Do you want to allow or disallow people on " 354 _("Do you want to allow or disallow people on "
355 "your buddy list to send you MSN Mobile pages " 355 "your buddy list to send you MSN Mobile pages "
356 "to your cell phone or other mobile device?"), 356 "to your cell phone or other mobile device?"),
357 -1, 357 -1,
358 purple_connection_get_account(gc), NULL, NULL, 358 purple_connection_get_account(gc), NULL, NULL,
359 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc, 3, 359 PURPLE_REQUEST_HINT_ACCOUNT, gc, 3,
360 _("Allow"), G_CALLBACK(enable_msn_pages_cb), 360 _("Allow"), G_CALLBACK(enable_msn_pages_cb),
361 _("Disallow"), G_CALLBACK(disable_msn_pages_cb), 361 _("Disallow"), G_CALLBACK(disable_msn_pages_cb),
362 _("Cancel"), NULL); 362 _("Cancel"), NULL);
363 } 363 }
364 364
403 purple_request_input_with_hint(gc, NULL, _("Send a mobile message."), NULL, 403 purple_request_input_with_hint(gc, NULL, _("Send a mobile message."), NULL,
404 NULL, TRUE, FALSE, NULL, 404 NULL, TRUE, FALSE, NULL,
405 _("Page"), G_CALLBACK(send_to_mobile_cb), 405 _("Page"), G_CALLBACK(send_to_mobile_cb),
406 _("Close"), G_CALLBACK(close_mobile_page_cb), 406 _("Close"), G_CALLBACK(close_mobile_page_cb),
407 purple_connection_get_account(gc), purple_buddy_get_name(buddy), NULL, 407 purple_connection_get_account(gc), purple_buddy_get_name(buddy), NULL,
408 PURPLE_REQUEST_UI_HINT_ACCOUNT, data); 408 PURPLE_REQUEST_HINT_ACCOUNT, data);
409 } 409 }
410 410
411 static gboolean 411 static gboolean
412 msn_offline_message(const PurpleBuddy *buddy) { 412 msn_offline_message(const PurpleBuddy *buddy) {
413 MsnUser *user; 413 MsnUser *user;