/pidgin/main: b48e08029b65: Style: fix gg (partially)

Tomasz Wasilczyk twasilczyk at pidgin.im
Mon Feb 3 14:23:29 EST 2014


Changeset: b48e08029b65a9ba837c111ac40a67a29eaac7f5
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-02-03 20:23 +0100
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/b48e08029b65

Description:

Style: fix gg (partially)

diffstat:

 libpurple/protocols/gg/account.c |  26 +++++++++++++-------------
 libpurple/protocols/gg/avatar.c  |   4 ++--
 2 files changed, 15 insertions(+), 15 deletions(-)

diffs (127 lines):

diff --git a/libpurple/protocols/gg/account.c b/libpurple/protocols/gg/account.c
--- a/libpurple/protocols/gg/account.c
+++ b/libpurple/protocols/gg/account.c
@@ -110,9 +110,9 @@ static void ggp_account_token_response(s
 	{
 		purple_debug_info("gg", "ggp_account_token_handler: "
 			"got token\n");
-	
+
 		token = g_new(ggp_account_token, 1);
-	
+
 		token_info = h->data;
 		token->id = g_strdup(token_info->tokenid);
 		token->size = h->body_size;
@@ -302,7 +302,7 @@ static void ggp_account_register_dialog_
 
 	h = gg_register3(register_data->email, register_data->password,
 		register_data->token->id, register_data->token_value, TRUE);
-	
+
 	ggp_libgaduw_http_watch(register_data->gc, h,
 		ggp_account_register_response, register_data, TRUE);
 }
@@ -357,19 +357,19 @@ static void ggp_account_register_respons
 	uin = register_result->uin;
 	purple_debug_info("gg", "ggp_account_register_response: "
 		"registered uin %u\n", uin);
-	
+
 	purple_account_set_username(account, ggp_uin_to_str(uin));
 	purple_account_set_remember_password(account,
 		register_data->password_remember);
 	purple_account_set_password(account, register_data->password,
 		NULL, NULL);
-	
+
 	tmp = g_strdup_printf(_("Your new GG number: %u."), uin);
 	purple_notify_info(account, GGP_ACCOUNT_REGISTER_TITLE,
 		_("Registration completed successfully!"), tmp,
 		purple_request_cpar_from_account(account));
 	g_free(tmp);
-	
+
 	ggp_account_register_completed(register_data, TRUE);
 }
 
@@ -381,13 +381,13 @@ static void ggp_account_register_complet
 
 	purple_debug_misc("gg", "ggp_account_register_completed: %d\n",
 		success);
-	
+
 	g_free(register_data->email);
 	g_free(register_data->password);
 	g_free(register_data->token_value);
 	ggp_account_token_free(register_data->token);
 	g_free(register_data);
-	
+
 	purple_account_disconnect(account);
 	purple_account_register_completed(account, success);
 }
@@ -517,14 +517,14 @@ static void ggp_account_chpass_dialog(Pu
 	
 	primary = g_strdup_printf(_("Change password for %s"),
 		purple_account_get_username(account));
-	
+
 	purple_request_fields(gc, GGP_ACCOUNT_CHPASS_TITLE, primary,
 		_("Please enter your current password and your new password."),
 		fields,
 		_("OK"), G_CALLBACK(ggp_account_chpass_dialog_ok),
 		_("Cancel"), G_CALLBACK(ggp_account_chpass_dialog_cancel),
 		purple_request_cpar_from_connection(gc), chpass_data);
-	
+
 	g_free(primary);
 }
 
@@ -585,7 +585,7 @@ static void ggp_account_chpass_dialog_ok
 	h = gg_change_passwd4(uin, chpass_data->email,
 		chpass_data->password_current, chpass_data->password_new,
 		chpass_data->token->id, chpass_data->token_value, TRUE);
-	
+
 	ggp_libgaduw_http_watch(chpass_data->gc, h,
 		ggp_account_chpass_response, chpass_data, TRUE);
 }
@@ -641,14 +641,14 @@ static void ggp_account_chpass_response(
 
 	purple_debug_info("gg", "ggp_account_chpass_response: "
 		"password changed\n");
-	
+
 	purple_account_set_password(account, chpass_data->password_new,
 		NULL, NULL);
 
 	purple_notify_info(account, GGP_ACCOUNT_CHPASS_TITLE,
 		_("Your password has been changed."), NULL,
 		purple_request_cpar_from_connection(chpass_data->gc));
-	
+
 	ggp_account_chpass_data_free(chpass_data);
 	
 	//TODO: reconnect / check how it is done in original client
diff --git a/libpurple/protocols/gg/avatar.c b/libpurple/protocols/gg/avatar.c
--- a/libpurple/protocols/gg/avatar.c
+++ b/libpurple/protocols/gg/avatar.c
@@ -103,7 +103,7 @@ void ggp_avatar_cleanup(PurpleConnection
 	{
 		ggp_avatar_buddy_update_req *current_update =
 			avdata->current_update;
-		
+
 		purple_http_conn_cancel(current_update->request);
 		g_free(current_update);
 	}
@@ -332,7 +332,7 @@ void ggp_avatar_own_set(PurpleConnection
 	
 	if (!PURPLE_CONNECTION_IS_VALID(gc) || !PURPLE_CONNECTION_IS_CONNECTED(gc))
 		return;
-	
+
 	purple_debug_info("gg", "ggp_avatar_own_set(%p, %p)", gc, img);
 	
 	own_data = ggp_avatar_get_avdata(gc)->own_data;



More information about the Commits mailing list