libpurple/protocols/msn/msn.c

changeset 20685
039aef89faf6
parent 20684
4daaf3284863
child 21162
8359073125ba
equal deleted inserted replaced
20684:4daaf3284863 20685:039aef89faf6
280 { 280 {
281 PurpleConnection *gc; 281 PurpleConnection *gc;
282 282
283 gc = (PurpleConnection *) action->context; 283 gc = (PurpleConnection *) action->context;
284 284
285 purple_request_input(gc, NULL, _("Set your friendly name."), 285 purple_request_input_with_hint(gc, NULL, _("Set your friendly name."),
286 _("This is the name that other MSN buddies will " 286 _("This is the name that other MSN buddies will "
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,
299 MsnSession *session; 299 MsnSession *session;
300 300
301 gc = (PurpleConnection *) action->context; 301 gc = (PurpleConnection *) action->context;
302 session = gc->proto_data; 302 session = gc->proto_data;
303 303
304 purple_request_input(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 "account", gc); 309 "account", gc);
316 MsnSession *session; 316 MsnSession *session;
317 317
318 gc = (PurpleConnection *) action->context; 318 gc = (PurpleConnection *) action->context;
319 session = gc->proto_data; 319 session = gc->proto_data;
320 320
321 purple_request_input(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 "account", gc); 326 "account", gc);
333 MsnSession *session; 333 MsnSession *session;
334 334
335 gc = (PurpleConnection *) action->context; 335 gc = (PurpleConnection *) action->context;
336 session = gc->proto_data; 336 session = gc->proto_data;
337 337
338 purple_request_input(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 "account", gc); 343 "account", gc);
348 { 348 {
349 PurpleConnection *gc; 349 PurpleConnection *gc;
350 350
351 gc = (PurpleConnection *) action->context; 351 gc = (PurpleConnection *) action->context;
352 352
353 purple_request_action(gc, NULL, _("Allow MSN Mobile pages?"), 353 purple_request_action_with_hint(gc, NULL, _("Allow MSN Mobile pages?"),
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,
398 398
399 data = g_new0(MsnMobileData, 1); 399 data = g_new0(MsnMobileData, 1);
400 data->gc = gc; 400 data->gc = gc;
401 data->passport = buddy->name; 401 data->passport = buddy->name;
402 402
403 purple_request_input(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 "account", data); 408 "account", data);

mercurial