libpurple/protocols/gg/gg.c

branch
cpw.resiak.disconnectreason
changeset 21281
3cfa8d1bffab
parent 21279
40685e1f50ca
parent 21233
e75de8db4f2b
child 21503
b3cad646ba4a
equal deleted inserted replaced
21280:2db787ddddf8 21281:3cfa8d1bffab
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 PURPLE_REQUEST_UI_HINT_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 PURPLE_REQUEST_UI_HINT_BLIST, gc);
354 } 354 }
355 /* }}} */ 355 /* }}} */
356 356
357 /* 357 /*
358 */ 358 */
501 /* original size: 60x24 */ 501 /* original size: 60x24 */
502 field = purple_request_field_image_new("token_img", 502 field = purple_request_field_image_new("token_img",
503 _("Current token"), token->data, token->size); 503 _("Current token"), token->data, token->size);
504 purple_request_field_group_add_field(group, field); 504 purple_request_field_group_add_field(group, field);
505 505
506 purple_request_fields(account, 506 purple_request_fields_with_hint(account,
507 _("Register New Gadu-Gadu Account"), 507 _("Register New Gadu-Gadu Account"),
508 _("Register New Gadu-Gadu Account"), 508 _("Register New Gadu-Gadu Account"),
509 _("Please, fill in the following fields"), 509 _("Please, fill in the following fields"),
510 fields, 510 fields,
511 _("OK"), G_CALLBACK(ggp_callback_register_account_ok), 511 _("OK"), G_CALLBACK(ggp_callback_register_account_ok),
512 _("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel), 512 _("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel),
513 purple_connection_get_account(gc), NULL, NULL, 513 purple_connection_get_account(gc), NULL, NULL,
514 gc); 514 PURPLE_REQUEST_UI_HINT_REGISTER, gc);
515 } 515 }
516 /* }}} */ 516 /* }}} */
517 517
518 /* ----- PUBLIC DIRECTORY SEARCH ---------------------------------------- */ 518 /* ----- PUBLIC DIRECTORY SEARCH ---------------------------------------- */
519 519
660 660
661 field = purple_request_field_bool_new("active", 661 field = purple_request_field_bool_new("active",
662 _("Only online"), FALSE); 662 _("Only online"), FALSE);
663 purple_request_field_group_add_field(group, field); 663 purple_request_field_group_add_field(group, field);
664 664
665 purple_request_fields(gc, 665 purple_request_fields_with_hint(gc,
666 _("Find buddies"), 666 _("Find buddies"),
667 _("Find buddies"), 667 _("Find buddies"),
668 _("Please, enter your search criteria below"), 668 _("Please, enter your search criteria below"),
669 fields, 669 fields,
670 _("OK"), G_CALLBACK(ggp_callback_find_buddies), 670 _("OK"), G_CALLBACK(ggp_callback_find_buddies),
671 _("Cancel"), NULL, 671 _("Cancel"), NULL,
672 purple_connection_get_account(gc), NULL, NULL, 672 purple_connection_get_account(gc), NULL, NULL,
673 gc); 673 PURPLE_REQUEST_UI_HINT_BLIST, gc);
674 } 674 }
675 /* }}} */ 675 /* }}} */
676 676
677 /* ----- CHANGE PASSWORD ------------------------------------------------ */ 677 /* ----- CHANGE PASSWORD ------------------------------------------------ */
678 678
798 798
799 msg = g_strdup_printf("%s %d", 799 msg = g_strdup_printf("%s %d",
800 _("Please, enter your current password and your new password for UIN: "), 800 _("Please, enter your current password and your new password for UIN: "),
801 ggp_get_uin(purple_connection_get_account(gc))); 801 ggp_get_uin(purple_connection_get_account(gc)));
802 802
803 purple_request_fields(gc, 803 purple_request_fields_with_hint(gc,
804 _("Change Gadu-Gadu Password"), 804 _("Change Gadu-Gadu Password"),
805 _("Change Gadu-Gadu Password"), 805 _("Change Gadu-Gadu Password"),
806 msg, 806 msg,
807 fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok), 807 fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok),
808 _("Cancel"), NULL, 808 _("Cancel"), NULL,
809 purple_connection_get_account(gc), NULL, NULL, 809 purple_connection_get_account(gc), NULL, NULL,
810 gc); 810 PURPLE_REQUEST_UI_HINT_ACCOUNT, gc);
811 811
812 g_free(msg); 812 g_free(msg);
813 } 813 }
814 /* }}} */ 814 /* }}} */
815 815
878 } 878 }
879 purple_request_field_group_add_field(group, field); 879 purple_request_field_group_add_field(group, field);
880 880
881 msg = g_strdup_printf(_("Select a chat for buddy: %s"), 881 msg = g_strdup_printf(_("Select a chat for buddy: %s"),
882 purple_buddy_get_alias(buddy)); 882 purple_buddy_get_alias(buddy));
883 purple_request_fields(gc, 883 purple_request_fields_with_hint(gc,
884 _("Add to chat..."), 884 _("Add to chat..."),
885 _("Add to chat..."), 885 _("Add to chat..."),
886 msg, 886 msg,
887 fields, 887 fields,
888 _("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok), 888 _("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok),
889 _("Cancel"), NULL, 889 _("Cancel"), NULL,
890 purple_connection_get_account(gc), NULL, NULL, 890 purple_connection_get_account(gc), NULL, NULL,
891 gc); 891 PURPLE_REQUEST_UI_HINT_BUDDY, gc);
892 g_free(msg); 892 g_free(msg);
893 } 893 }
894 /* }}} */ 894 /* }}} */
895 895
896 /* ----- BLOCK BUDDIES -------------------------------------------------- */ 896 /* ----- BLOCK BUDDIES -------------------------------------------------- */

mercurial