comparison libpurple/protocols/gg/gg.c @ 16439:08db93bbd798

Added account, who, and conversation parameters to the request API calls, and updated all code to match. I can't compile the Perl module, so I'd appreciate it if someone who knows it would verify that this doesn't break Perl.
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 26 Apr 2007 12:25:49 +0000
parents 32c366eeeb99
children a338acd14365
comparison
equal deleted inserted replaced
16435:a46a0362dc34 16439:08db93bbd798
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(action, _("Save buddylist..."), NULL, TRUE,
337 G_CALLBACK(ggp_callback_buddylist_save_ok), NULL, gc); 337 G_CALLBACK(ggp_callback_buddylist_save_ok), NULL,
338 purple_connection_get_account(gc), NULL, NULL,
339 gc);
338 } 340 }
339 /* }}} */ 341 /* }}} */
340 342
341 /* 343 /*
342 */ 344 */
344 static void ggp_action_buddylist_load(PurplePluginAction *action) 346 static void ggp_action_buddylist_load(PurplePluginAction *action)
345 { 347 {
346 PurpleConnection *gc = (PurpleConnection *)action->context; 348 PurpleConnection *gc = (PurpleConnection *)action->context;
347 349
348 purple_request_file(action, "Load buddylist from file...", NULL, FALSE, 350 purple_request_file(action, "Load buddylist from file...", NULL, FALSE,
349 G_CALLBACK(ggp_callback_buddylist_load_ok), NULL, gc); 351 G_CALLBACK(ggp_callback_buddylist_load_ok), NULL,
352 purple_connection_get_account(gc), NULL, NULL,
353 gc);
350 } 354 }
351 /* }}} */ 355 /* }}} */
352 356
353 /* 357 /*
354 */ 358 */
494 _("Register New Gadu-Gadu Account"), 498 _("Register New Gadu-Gadu Account"),
495 _("Please, fill in the following fields"), 499 _("Please, fill in the following fields"),
496 fields, 500 fields,
497 _("OK"), G_CALLBACK(ggp_callback_register_account_ok), 501 _("OK"), G_CALLBACK(ggp_callback_register_account_ok),
498 _("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel), 502 _("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel),
503 purple_connection_get_account(gc), NULL, NULL,
499 gc); 504 gc);
500 } 505 }
501 /* }}} */ 506 /* }}} */
502 507
503 /* ----- PUBLIC DIRECTORY SEARCH ---------------------------------------- */ 508 /* ----- PUBLIC DIRECTORY SEARCH ---------------------------------------- */
652 _("Find buddies"), 657 _("Find buddies"),
653 _("Please, enter your search criteria below"), 658 _("Please, enter your search criteria below"),
654 fields, 659 fields,
655 _("OK"), G_CALLBACK(ggp_callback_find_buddies), 660 _("OK"), G_CALLBACK(ggp_callback_find_buddies),
656 _("Cancel"), NULL, 661 _("Cancel"), NULL,
662 purple_connection_get_account(gc), NULL, NULL,
657 gc); 663 gc);
658 } 664 }
659 /* }}} */ 665 /* }}} */
660 666
661 /* ----- CHANGE PASSWORD ------------------------------------------------ */ 667 /* ----- CHANGE PASSWORD ------------------------------------------------ */
787 purple_request_fields(gc, 793 purple_request_fields(gc,
788 _("Change Gadu-Gadu Password"), 794 _("Change Gadu-Gadu Password"),
789 _("Change Gadu-Gadu Password"), 795 _("Change Gadu-Gadu Password"),
790 msg, 796 msg,
791 fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok), 797 fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok),
792 _("Cancel"), NULL, gc); 798 _("Cancel"), NULL,
799 purple_connection_get_account(gc), NULL, NULL,
800 gc);
793 801
794 g_free(msg); 802 g_free(msg);
795 } 803 }
796 /* }}} */ 804 /* }}} */
797 805
866 _("Add to chat..."), 874 _("Add to chat..."),
867 _("Add to chat..."), 875 _("Add to chat..."),
868 msg, 876 msg,
869 fields, 877 fields,
870 _("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok), 878 _("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok),
871 _("Cancel"), NULL, gc); 879 _("Cancel"), NULL,
880 purple_connection_get_account(gc), NULL, NULL,
881 gc);
872 g_free(msg); 882 g_free(msg);
873 } 883 }
874 /* }}} */ 884 /* }}} */
875 885
876 /* ----- BLOCK BUDDIES -------------------------------------------------- */ 886 /* ----- BLOCK BUDDIES -------------------------------------------------- */