libpurple/ciphers/rc4cipher.c

branch
soc.2013.gobjectification
changeset 35084
07cd7f1767c7
parent 35077
0a120b204362
child 35094
47964e26263e
--- a/libpurple/ciphers/rc4cipher.c	Sun Nov 24 01:58:26 2013 +0530
+++ b/libpurple/ciphers/rc4cipher.c	Sun Nov 24 02:02:31 2013 +0530
@@ -184,17 +184,16 @@
 	cipher_class->encrypt = purple_rc4_cipher_encrypt;
 	cipher_class->set_key = purple_rc4_cipher_set_key;
 
+	g_type_class_add_private(klass, sizeof(PurpleRC4CipherPrivate));
+
 	properties[PROP_KEY_LEN] = g_param_spec_int("key-len", "key-len", "key-len",
 							 G_MININT, G_MAXINT, 0,
 							 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
-	g_object_class_install_property(obj_class, PROP_KEY_LEN,
-							 properties[PROP_KEY_LEN]);
 
 	properties[PROP_KEY] = g_param_spec_string("key", "key", "key", NULL,
 								G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS);
-	g_object_class_install_property(obj_class, PROP_KEY, properties[PROP_KEY]);
 
-	g_type_class_add_private(klass, sizeof(PurpleRC4CipherPrivate));
+	g_object_class_install_properties(obj_class, PROP_LAST, properties);
 }
 
 static void

mercurial