[Telepathy-commits] [telepathy-haze/master] Reorder haze_contact_list_channel_class_init()

Will Thompson will.thompson at collabora.co.uk
Mon Aug 18 09:33:37 PDT 2008


---
 src/contact-list-channel.c |   34 ++++++++++++++++++----------------
 1 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/src/contact-list-channel.c b/src/contact-list-channel.c
index 741a382..a81681d 100644
--- a/src/contact-list-channel.c
+++ b/src/contact-list-channel.c
@@ -675,20 +675,8 @@ haze_contact_list_channel_class_init (HazeContactListChannelClass *klass)
     GParamSpec *param_spec;
     static gboolean properties_mixin_initialized = FALSE;
 
-    tp_group_mixin_class_init (object_class,
-        G_STRUCT_OFFSET (HazeContactListChannelClass, group_class),
-        _haze_contact_list_channel_add_member_cb,
-        _haze_contact_list_channel_remove_member_cb);
-
-    if (!properties_mixin_initialized)
-    {
-        properties_mixin_initialized = TRUE;
-        klass->properties_class.interfaces = NULL;
-        tp_dbus_properties_mixin_class_init (object_class,
-            G_STRUCT_OFFSET (HazeContactListChannelClass, properties_class));
-
-        tp_group_mixin_init_dbus_properties (object_class);
-    }
+    g_type_class_add_private (object_class,
+                              sizeof(HazeContactListChannelPrivate));
 
     object_class->constructor = haze_contact_list_channel_constructor;
 
@@ -698,6 +686,7 @@ haze_contact_list_channel_class_init (HazeContactListChannelClass *klass)
     object_class->get_property = haze_contact_list_channel_get_property;
     object_class->set_property = haze_contact_list_channel_set_property;
 
+
     param_spec = g_param_spec_object ("connection", "HazeConnection object",
                                       "Haze connection object that owns this "
                                       "contact list channel object.",
@@ -716,8 +705,21 @@ haze_contact_list_channel_class_init (HazeContactListChannelClass *klass)
             "handle-type");
     g_object_class_override_property (object_class, PROP_HANDLE, "handle");
 
-    g_type_class_add_private (object_class,
-                              sizeof(HazeContactListChannelPrivate));
+
+    tp_group_mixin_class_init (object_class,
+        G_STRUCT_OFFSET (HazeContactListChannelClass, group_class),
+        _haze_contact_list_channel_add_member_cb,
+        _haze_contact_list_channel_remove_member_cb);
+
+    if (!properties_mixin_initialized)
+    {
+        properties_mixin_initialized = TRUE;
+        klass->properties_class.interfaces = NULL;
+        tp_dbus_properties_mixin_class_init (object_class,
+            G_STRUCT_OFFSET (HazeContactListChannelClass, properties_class));
+
+        tp_group_mixin_init_dbus_properties (object_class);
+    }
 }
 
 static void
-- 
1.5.6.3




More information about the Telepathy-commits mailing list