/soc/2013/ankitkv/gobjectification: 7ac9ea3e16e0: Added g_object...

Ankit Vani a at nevitus.org
Fri Jun 14 13:06:00 EDT 2013


Changeset: 7ac9ea3e16e03f4f8c53add9cc25560987ad8a07
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-14 22:35 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/7ac9ea3e16e0

Description:

Added g_object_notify for property changes

diffstat:

 libpurple/ciphers/des.c    |  2 ++
 libpurple/ciphers/hmac.c   |  1 +
 libpurple/ciphers/pbkdf2.c |  1 +
 3 files changed, 4 insertions(+), 0 deletions(-)

diffs (34 lines):

diff --git a/libpurple/ciphers/des.c b/libpurple/ciphers/des.c
--- a/libpurple/ciphers/des.c
+++ b/libpurple/ciphers/des.c
@@ -381,6 +381,8 @@ purple_des_cipher_set_key(PurpleCipher *
 		priv->decrypt_subkeys[i] = priv->encrypt_subkeys[30 - i];
 		priv->decrypt_subkeys[i + 1] = priv->encrypt_subkeys[31 - i];
 	}
+
+	g_object_notify(G_OBJECT(cipher), "key");
 }
 
 static size_t
diff --git a/libpurple/ciphers/hmac.c b/libpurple/ciphers/hmac.c
--- a/libpurple/ciphers/hmac.c
+++ b/libpurple/ciphers/hmac.c
@@ -59,6 +59,7 @@ purple_hmac_cipher_set_hash(PurpleCipher
 	PurpleHMACCipherPrivate *priv = PURPLE_HMAC_CIPHER_GET_PRIVATE(cipher);
 
 	priv->hash = g_object_ref(G_OBJECT(hash));
+	g_object_notify(G_OBJECT(cipher), "hash");
 }
 
 /*******************************************************************************
diff --git a/libpurple/ciphers/pbkdf2.c b/libpurple/ciphers/pbkdf2.c
--- a/libpurple/ciphers/pbkdf2.c
+++ b/libpurple/ciphers/pbkdf2.c
@@ -72,6 +72,7 @@ purple_pbkdf2_cipher_set_hash(PurpleCiph
 	PurplePBKDF2CipherPrivate *priv = PURPLE_PBKDF2_CIPHER_GET_PRIVATE(cipher);
 
 	priv->hash = g_object_ref(G_OBJECT(hash));
+	g_object_notify(G_OBJECT(cipher), "hash");
 }
 
 /******************************************************************************



More information about the Commits mailing list