comparison libpurple/protocols/msn/msn.c @ 19879:cb189eea2c59

Added hints to msn msn.c
author Gabriel Schulhof <nix@go-nix.ca>
date Sun, 12 Aug 2007 18:50:14 +0000
parents 926ccb104da0
children 1ea3f7e9bdbc
comparison
equal deleted inserted replaced
19878:9c23f8a9bc28 19879:cb189eea2c59
256 "see you as."), 256 "see you as."),
257 purple_connection_get_display_name(gc), FALSE, FALSE, NULL, 257 purple_connection_get_display_name(gc), FALSE, FALSE, NULL,
258 _("OK"), G_CALLBACK(msn_act_id), 258 _("OK"), G_CALLBACK(msn_act_id),
259 _("Cancel"), NULL, 259 _("Cancel"), NULL,
260 purple_connection_get_account(gc), NULL, NULL, 260 purple_connection_get_account(gc), NULL, NULL,
261 gc); 261 "account", gc);
262 } 262 }
263 263
264 static void 264 static void
265 msn_show_set_home_phone(PurplePluginAction *action) 265 msn_show_set_home_phone(PurplePluginAction *action)
266 { 266 {
273 purple_request_input(gc, NULL, _("Set your home phone number."), NULL, 273 purple_request_input(gc, NULL, _("Set your home phone number."), NULL,
274 msn_user_get_home_phone(session->user), FALSE, FALSE, NULL, 274 msn_user_get_home_phone(session->user), FALSE, FALSE, NULL,
275 _("OK"), G_CALLBACK(msn_set_home_phone_cb), 275 _("OK"), G_CALLBACK(msn_set_home_phone_cb),
276 _("Cancel"), NULL, 276 _("Cancel"), NULL,
277 purple_connection_get_account(gc), NULL, NULL, 277 purple_connection_get_account(gc), NULL, NULL,
278 gc); 278 "account", gc);
279 } 279 }
280 280
281 static void 281 static void
282 msn_show_set_work_phone(PurplePluginAction *action) 282 msn_show_set_work_phone(PurplePluginAction *action)
283 { 283 {
290 purple_request_input(gc, NULL, _("Set your work phone number."), NULL, 290 purple_request_input(gc, NULL, _("Set your work phone number."), NULL,
291 msn_user_get_work_phone(session->user), FALSE, FALSE, NULL, 291 msn_user_get_work_phone(session->user), FALSE, FALSE, NULL,
292 _("OK"), G_CALLBACK(msn_set_work_phone_cb), 292 _("OK"), G_CALLBACK(msn_set_work_phone_cb),
293 _("Cancel"), NULL, 293 _("Cancel"), NULL,
294 purple_connection_get_account(gc), NULL, NULL, 294 purple_connection_get_account(gc), NULL, NULL,
295 gc); 295 "account", gc);
296 } 296 }
297 297
298 static void 298 static void
299 msn_show_set_mobile_phone(PurplePluginAction *action) 299 msn_show_set_mobile_phone(PurplePluginAction *action)
300 { 300 {
323 _("Do you want to allow or disallow people on " 323 _("Do you want to allow or disallow people on "
324 "your buddy list to send you MSN Mobile pages " 324 "your buddy list to send you MSN Mobile pages "
325 "to your cell phone or other mobile device?"), 325 "to your cell phone or other mobile device?"),
326 -1, 326 -1,
327 purple_connection_get_account(gc), NULL, NULL, 327 purple_connection_get_account(gc), NULL, NULL,
328 gc, 3, 328 "account", gc, 3,
329 _("Allow"), G_CALLBACK(enable_msn_pages_cb), 329 _("Allow"), G_CALLBACK(enable_msn_pages_cb),
330 _("Disallow"), G_CALLBACK(disable_msn_pages_cb), 330 _("Disallow"), G_CALLBACK(disable_msn_pages_cb),
331 _("Cancel"), NULL); 331 _("Cancel"), NULL);
332 } 332 }
333 333
372 purple_request_input(gc, NULL, _("Send a mobile message."), NULL, 372 purple_request_input(gc, NULL, _("Send a mobile message."), NULL,
373 NULL, TRUE, FALSE, NULL, 373 NULL, TRUE, FALSE, NULL,
374 _("Page"), G_CALLBACK(send_to_mobile_cb), 374 _("Page"), G_CALLBACK(send_to_mobile_cb),
375 _("Close"), G_CALLBACK(close_mobile_page_cb), 375 _("Close"), G_CALLBACK(close_mobile_page_cb),
376 purple_connection_get_account(gc), purple_buddy_get_name(buddy), NULL, 376 purple_connection_get_account(gc), purple_buddy_get_name(buddy), NULL,
377 data); 377 "account", data);
378 } 378 }
379 379
380 static gboolean 380 static gboolean
381 msn_offline_message(const PurpleBuddy *buddy) { 381 msn_offline_message(const PurpleBuddy *buddy) {
382 MsnUser *user; 382 MsnUser *user;