diff libpurple/protocols/gg/gg.c @ 16442: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
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg.c	Thu Apr 26 10:49:27 2007 +0000
+++ b/libpurple/protocols/gg/gg.c	Thu Apr 26 12:25:49 2007 +0000
@@ -334,7 +334,9 @@
 	PurpleConnection *gc = (PurpleConnection *)action->context;
 
 	purple_request_file(action, _("Save buddylist..."), NULL, TRUE,
-			G_CALLBACK(ggp_callback_buddylist_save_ok), NULL, gc);
+			G_CALLBACK(ggp_callback_buddylist_save_ok), NULL,
+			purple_connection_get_account(gc), NULL, NULL,
+			gc);
 }
 /* }}} */
 
@@ -346,7 +348,9 @@
 	PurpleConnection *gc = (PurpleConnection *)action->context;
 
 	purple_request_file(action, "Load buddylist from file...", NULL, FALSE,
-			G_CALLBACK(ggp_callback_buddylist_load_ok), NULL, gc);
+			G_CALLBACK(ggp_callback_buddylist_load_ok), NULL,
+			purple_connection_get_account(gc), NULL, NULL,
+			gc);
 }
 /* }}} */
 
@@ -496,6 +500,7 @@
 		fields,
 		_("OK"), G_CALLBACK(ggp_callback_register_account_ok),
 		_("Cancel"), G_CALLBACK(ggp_callback_register_account_cancel),
+		purple_connection_get_account(gc), NULL, NULL,
 		gc);
 }
 /* }}} */
@@ -654,6 +659,7 @@
 		fields,
 		_("OK"), G_CALLBACK(ggp_callback_find_buddies),
 		_("Cancel"), NULL,
+		purple_connection_get_account(gc), NULL, NULL,
 		gc);
 }
 /* }}} */
@@ -789,7 +795,9 @@
 		_("Change Gadu-Gadu Password"),
 		msg,
 		fields, _("OK"), G_CALLBACK(ggp_callback_change_passwd_ok),
-		_("Cancel"), NULL, gc);
+		_("Cancel"), NULL,
+		purple_connection_get_account(gc), NULL, NULL,
+		gc);
 
 	g_free(msg);
 }
@@ -868,7 +876,9 @@
 			msg,
 			fields,
 			_("Add"), G_CALLBACK(ggp_callback_add_to_chat_ok),
-			_("Cancel"), NULL, gc);
+			_("Cancel"), NULL,
+			purple_connection_get_account(gc), NULL, NULL,			  
+			gc);
 	g_free(msg);
 }
 /* }}} */