[Telepathy-commits] [telepathy-gabble/master] olpc-view: move creation of all the hash tables to the constructor

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:44 PDT 2008


20080728142740-7fe3f-ceb1c50d05ad4049c277ad3a4ea62556f6a5b76d.gz
---
 src/olpc-view.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/olpc-view.c b/src/olpc-view.c
index 8a7b218..fba6ff4 100644
--- a/src/olpc-view.c
+++ b/src/olpc-view.c
@@ -96,11 +96,6 @@ gabble_olpc_view_init (GabbleOlpcView *self)
 
   self->priv = priv;
 
-  priv->buddy_properties = g_hash_table_new_full (g_direct_hash,
-      g_direct_equal, NULL, (GDestroyNotify) g_hash_table_unref);
-  priv->buddy_rooms = g_hash_table_new_full (g_direct_hash, g_direct_equal,
-      NULL, (GDestroyNotify) tp_handle_set_destroy);
-
   priv->dispose_has_run = FALSE;
 }
 
@@ -235,8 +230,13 @@ gabble_olpc_view_constructor (GType type,
       TP_HANDLE_TYPE_CONTACT);
 
   priv->buddies = tp_handle_set_new (contact_handles);
+
   priv->activities = g_hash_table_new_full (g_direct_hash, g_direct_equal,
-      NULL, g_object_unref );
+      NULL, g_object_unref);
+  priv->buddy_properties = g_hash_table_new_full (g_direct_hash,
+      g_direct_equal, NULL, (GDestroyNotify) g_hash_table_unref);
+  priv->buddy_rooms = g_hash_table_new_full (g_direct_hash, g_direct_equal,
+      NULL, (GDestroyNotify) tp_handle_set_destroy);
 
   return obj;
 }
-- 
1.5.6.5




More information about the Telepathy-commits mailing list