comparison libpurple/protocols/jabber/buddy.c @ 21095:cab348e39751

disapproval of revision '0e5385979f58d6ee74f668bb9b5dfd1ae3b6043f'
author Richard Laager <rlaager@wiktel.com>
date Sun, 14 Oct 2007 00:26:00 +0000
parents 8c9aad9479c0
children 51cf02dbdb0e fba1f6c3df0b
comparison
equal deleted inserted replaced
21086:8c9aad9479c0 21095:cab348e39751
717 } 717 }
718 718
719 if(x_vc_data != NULL) 719 if(x_vc_data != NULL)
720 xmlnode_free(x_vc_data); 720 xmlnode_free(x_vc_data);
721 721
722 purple_request_fields(gc, _("Edit XMPP vCard"), 722 purple_request_fields_with_hint(gc, _("Edit XMPP vCard"),
723 _("Edit XMPP vCard"), 723 _("Edit XMPP vCard"),
724 _("All items below are optional. Enter only the " 724 _("All items below are optional. Enter only the "
725 "information with which you feel comfortable."), 725 "information with which you feel comfortable."),
726 fields, 726 fields,
727 _("Save"), G_CALLBACK(jabber_format_info), 727 _("Save"), G_CALLBACK(jabber_format_info),
728 _("Cancel"), NULL, 728 _("Cancel"), NULL,
729 purple_connection_get_account(gc), NULL, NULL, 729 purple_connection_get_account(gc), NULL, NULL,
730 gc); 730 "account", gc);
731 } 731 }
732 732
733 /*---------------------------------------*/ 733 /*---------------------------------------*/
734 /* End Jabber "set info" (vCard) support */ 734 /* End Jabber "set info" (vCard) support */
735 /*---------------------------------------*/ 735 /*---------------------------------------*/
2408 2408
2409 usi = g_new0(struct user_search_info, 1); 2409 usi = g_new0(struct user_search_info, 1);
2410 usi->js = js; 2410 usi->js = js;
2411 usi->directory_server = g_strdup(from); 2411 usi->directory_server = g_strdup(from);
2412 2412
2413 purple_request_fields(js->gc, _("Search for XMPP users"), 2413 purple_request_fields_with_hint(js->gc, _("Search for XMPP users"),
2414 _("Search for XMPP users"), instructions, fields, 2414 _("Search for XMPP users"), instructions, fields,
2415 _("Search"), G_CALLBACK(user_search_cb), 2415 _("Search"), G_CALLBACK(user_search_cb),
2416 _("Cancel"), G_CALLBACK(user_search_cancel_cb), 2416 _("Cancel"), G_CALLBACK(user_search_cancel_cb),
2417 purple_connection_get_account(js->gc), NULL, NULL, 2417 purple_connection_get_account(js->gc), NULL, NULL,
2418 usi); 2418 "account", usi);
2419 2419
2420 g_free(instructions); 2420 g_free(instructions);
2421 } 2421 }
2422 } 2422 }
2423 2423
2442 void jabber_user_search_begin(PurplePluginAction *action) 2442 void jabber_user_search_begin(PurplePluginAction *action)
2443 { 2443 {
2444 PurpleConnection *gc = (PurpleConnection *) action->context; 2444 PurpleConnection *gc = (PurpleConnection *) action->context;
2445 JabberStream *js = gc->proto_data; 2445 JabberStream *js = gc->proto_data;
2446 2446
2447 purple_request_input(gc, _("Enter a User Directory"), _("Enter a User Directory"), 2447 purple_request_input_with_hint(gc, _("Enter a User Directory"), _("Enter a User Directory"),
2448 _("Select a user directory to search"), 2448 _("Select a user directory to search"),
2449 js->user_directories ? js->user_directories->data : NULL, 2449 js->user_directories ? js->user_directories->data : NULL,
2450 FALSE, FALSE, NULL, 2450 FALSE, FALSE, NULL,
2451 _("Search Directory"), PURPLE_CALLBACK(jabber_user_search), 2451 _("Search Directory"), PURPLE_CALLBACK(jabber_user_search),
2452 _("Cancel"), NULL, 2452 _("Cancel"), NULL,
2453 NULL, NULL, NULL, 2453 NULL, NULL, NULL,
2454 js); 2454 "account", js);
2455 } 2455 }
2456 2456
2457 2457
2458 2458