libpurple/protocols/jabber/google/google_p2p.c

branch
soc.2013.gobjectification.plugins
changeset 36959
4806ff428ecd
parent 36958
2ab9fcc7ca7c
parent 35083
3b6577fd64ee
child 37163
bdaa6ae19356
--- a/libpurple/protocols/jabber/google/google_p2p.c	Wed Nov 20 04:54:16 2013 +0530
+++ b/libpurple/protocols/jabber/google/google_p2p.c	Sun Nov 24 02:44:39 2013 +0530
@@ -140,21 +140,19 @@
 	klass->parent_class.add_local_candidate = jingle_google_p2p_add_local_candidate;
 	klass->parent_class.get_remote_candidates = jingle_google_p2p_get_remote_candidates;
 
+	g_type_class_add_private(klass, sizeof(JingleGoogleP2PPrivate));
+
 	properties[PROP_LOCAL_CANDIDATES] = g_param_spec_pointer("local-candidates",
 			"Local candidates",
 			"The local candidates for this transport.",
 			G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
-	g_object_class_install_property(gobject_class, PROP_LOCAL_CANDIDATES,
-			properties[PROP_LOCAL_CANDIDATES]);
 
 	properties[PROP_REMOTE_CANDIDATES] = g_param_spec_pointer("remote-candidates",
 			"Remote candidates",
 			"The remote candidates for this transport.",
 			G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
-	g_object_class_install_property(gobject_class, PROP_REMOTE_CANDIDATES,
-			properties[PROP_REMOTE_CANDIDATES]);
 
-	g_type_class_add_private(klass, sizeof(JingleGoogleP2PPrivate));
+	g_object_class_install_properties(gobject_class, PROP_LAST, properties);
 }
 
 static void

mercurial