Mercurial > pidgin
comparison libpurple/protocols/gg/gg.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 |
---|---|
331 /* static void ggp_action_buddylist_save(PurplePluginAction *action) {{{ */ | 331 /* static void ggp_action_buddylist_save(PurplePluginAction *action) {{{ */ |
332 static void ggp_action_buddylist_save(PurplePluginAction *action) | 332 static void ggp_action_buddylist_save(PurplePluginAction *action) |
333 { | 333 { |
334 PurpleConnection *gc = (PurpleConnection *)action->context; | 334 PurpleConnection *gc = (PurpleConnection *)action->context; |
335 | 335 |
336 purple_request_file(action, _("Save buddylist..."), NULL, TRUE, | 336 purple_request_file_with_hint(action, _("Save buddylist..."), NULL, TRUE, |
337 G_CALLBACK(ggp_callback_buddylist_save_ok), NULL, | 337 G_CALLBACK(ggp_callback_buddylist_save_ok), NULL, |
338 purple_connection_get_account(gc), NULL, NULL, | 338 purple_connection_get_account(gc), NULL, NULL, |
339 gc); | 339 "blist", gc); |
340 } | 340 } |
341 /* }}} */ | 341 /* }}} */ |
342 | 342 |
343 /* | 343 /* |
344 */ | 344 */ |
345 /* static void ggp_action_buddylist_load(PurplePluginAction *action) {{{ */ | 345 /* static void ggp_action_buddylist_load(PurplePluginAction *action) {{{ */ |
346 static void ggp_action_buddylist_load(PurplePluginAction *action) | 346 static void ggp_action_buddylist_load(PurplePluginAction *action) |
347 { | 347 { |
348 PurpleConnection *gc = (PurpleConnection *)action->context; | 348 PurpleConnection *gc = (PurpleConnection *)action->context; |
349 | 349 |
350 purple_request_file(action, "Load buddylist from file...", NULL, FALSE, | 350 purple_request_file_with_hint(action, "Load buddylist from file...", NULL, FALSE, |
351 G_CALLBACK(ggp_callback_buddylist_load_ok), NULL, | 351 G_CALLBACK(ggp_callback_buddylist_load_ok), NULL, |
352 purple_connection_get_account(gc), NULL, NULL, | 352 purple_connection_get_account(gc), NULL, NULL, |
353 gc); | 353 "blist", gc); |
354 } | 354 } |
355 /* }}} */ | 355 /* }}} */ |
356 | 356 |
357 /* | 357 /* |
358 */ | 358 */ |
496 /* original size: 60x24 */ | 496 /* original size: 60x24 */ |
497 field = purple_request_field_image_new("token_img", | 497 field = purple_request_field_image_new("token_img", |
498 _("Current token"), token->data, token->size); | 498 _("Current token"), token->data, token->size); |
499 purple_request_field_group_add_field(group, field); | 499 purple_request_field_group_add_field(group, field); |
500 | 500 |
501 purple_request_fields(account, | 501 purple_request_fields_with_hint(account, |
502 _("Register New Gadu-Gadu Account"), | 502 _("Register New Gadu-Gadu Account"), |
503 _("Register New Gadu-Gadu Account"), | 503 _("Register New Gadu-Gadu Account"), |
504 _("Please, fill in the following fields"), | 504 _("Please, fill in the following fields"), |
505 fields, | 505 fields, |
506 _("OK"), G_CALLBACK(ggp_callback_register_account_ok), | 506 _("OK"), G_CALLBACK(ggp_callback_register_account_ok), |
507 _("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel), | 507 _("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel), |
508 purple_connection_get_account(gc), NULL, NULL, | 508 purple_connection_get_account(gc), NULL, NULL, |
509 gc); | 509 "register-account", gc); |
510 } | 510 } |
511 /* }}} */ | 511 /* }}} */ |
512 | 512 |
513 /* ----- PUBLIC DIRECTORY SEARCH ---------------------------------------- */ | 513 /* ----- PUBLIC DIRECTORY SEARCH ---------------------------------------- */ |
514 | 514 |
655 | 655 |
656 field = purple_request_field_bool_new("active", | 656 field = purple_request_field_bool_new("active", |
657 _("Only online"), FALSE); | 657 _("Only online"), FALSE); |
658 purple_request_field_group_add_field(group, field); | 658 purple_request_field_group_add_field(group, field); |
659 | 659 |
660 purple_request_fields(gc, | 660 purple_request_fields_with_hint(gc, |
661 _("Find buddies"), | 661 _("Find buddies"), |
662 _("Find buddies"), | 662 _("Find buddies"), |
663 _("Please, enter your search criteria below"), | 663 _("Please, enter your search criteria below"), |
664 fields, | 664 fields, |
665 _("OK"), G_CALLBACK(ggp_callback_find_buddies), | 665 _("OK"), G_CALLBACK(ggp_callback_find_buddies), |
666 _("Cancel"), NULL, | 666 _("Cancel"), NULL, |
667 purple_connection_get_account(gc), NULL, NULL, | 667 purple_connection_get_account(gc), NULL, NULL, |
668 gc); | 668 "blist", gc); |
669 } | 669 } |
670 /* }}} */ | 670 /* }}} */ |
671 | 671 |
672 /* ----- CHANGE PASSWORD ------------------------------------------------ */ | 672 /* ----- CHANGE PASSWORD ------------------------------------------------ */ |
673 | 673 |
793 | 793 |
794 msg = g_strdup_printf("%s %d", | 794 msg = g_strdup_printf("%s %d", |
795 _("Please, enter your current password and your new password for UIN: "), | 795 _("Please, enter your current password and your new password for UIN: "), |
796 ggp_get_uin(purple_connection_get_account(gc))); | 796 ggp_get_uin(purple_connection_get_account(gc))); |
797 | 797 |
798 purple_request_fields(gc, | 798 purple_request_fields_with_hint(gc, |
799 _("Change Gadu-Gadu Password"), | 799 _("Change Gadu-Gadu Password"), |
800 _("Change Gadu-Gadu Password"), | 800 _("Change Gadu-Gadu Password"), |
801 msg, | 801 msg, |
802 fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok), | 802 fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok), |
803 _("Cancel"), NULL, | 803 _("Cancel"), NULL, |
804 purple_connection_get_account(gc), NULL, NULL, | 804 purple_connection_get_account(gc), NULL, NULL, |
805 gc); | 805 "account", gc); |
806 | 806 |
807 g_free(msg); | 807 g_free(msg); |
808 } | 808 } |
809 /* }}} */ | 809 /* }}} */ |
810 | 810 |
873 } | 873 } |
874 purple_request_field_group_add_field(group, field); | 874 purple_request_field_group_add_field(group, field); |
875 | 875 |
876 msg = g_strdup_printf(_("Select a chat for buddy: %s"), | 876 msg = g_strdup_printf(_("Select a chat for buddy: %s"), |
877 purple_buddy_get_alias(buddy)); | 877 purple_buddy_get_alias(buddy)); |
878 purple_request_fields(gc, | 878 purple_request_fields_with_hint(gc, |
879 _("Add to chat..."), | 879 _("Add to chat..."), |
880 _("Add to chat..."), | 880 _("Add to chat..."), |
881 msg, | 881 msg, |
882 fields, | 882 fields, |
883 _("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok), | 883 _("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok), |
884 _("Cancel"), NULL, | 884 _("Cancel"), NULL, |
885 purple_connection_get_account(gc), NULL, NULL, | 885 purple_connection_get_account(gc), NULL, NULL, |
886 gc); | 886 "buddy", gc); |
887 g_free(msg); | 887 g_free(msg); |
888 } | 888 } |
889 /* }}} */ | 889 /* }}} */ |
890 | 890 |
891 /* ----- BLOCK BUDDIES -------------------------------------------------- */ | 891 /* ----- BLOCK BUDDIES -------------------------------------------------- */ |