[Telepathy-commits] [telepathy-gabble/master] buddy-view: implement its D-Bus properties

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Oct 8 09:11:09 PDT 2008


---
 src/olpc-buddy-view.c |    6 ------
 src/olpc-buddy-view.h |    2 ++
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/olpc-buddy-view.c b/src/olpc-buddy-view.c
index 9efb190..69c8209 100644
--- a/src/olpc-buddy-view.c
+++ b/src/olpc-buddy-view.c
@@ -293,8 +293,6 @@ gabble_olpc_buddy_view_class_init (
   GabbleOlpcViewClass *view_class = GABBLE_OLPC_VIEW_CLASS (
       gabble_olpc_buddy_view_class);
   GParamSpec *param_spec;
-  /* FIXME: Implement these props ! */
-  /*
   static TpDBusPropertiesMixinPropImpl buddy_view_props[] = {
       { "Properties", "view-properties", NULL },
       { "Alias", "alias", NULL },
@@ -308,7 +306,6 @@ gabble_olpc_buddy_view_class_init (
       },
       { NULL }
   };
-  */
 
   object_class->get_property = gabble_olpc_buddy_view_get_property;
   object_class->set_property = gabble_olpc_buddy_view_set_property;
@@ -339,12 +336,9 @@ gabble_olpc_buddy_view_class_init (
       param_spec);
 
 
-  /* FIXME: how am I suppose to do that with inheritance ? */
-  /*
   gabble_olpc_buddy_view_class->dbus_props_class.interfaces = prop_interfaces;
   tp_dbus_properties_mixin_class_init (object_class,
       G_STRUCT_OFFSET (GabbleOlpcBuddyViewClass, dbus_props_class));
-      */
 }
 
 GabbleOlpcBuddyView *
diff --git a/src/olpc-buddy-view.h b/src/olpc-buddy-view.h
index c193b9a..203913b 100644
--- a/src/olpc-buddy-view.h
+++ b/src/olpc-buddy-view.h
@@ -34,6 +34,8 @@ typedef struct _GabbleOlpcBuddyViewClass GabbleOlpcBuddyViewClass;
 
 struct _GabbleOlpcBuddyViewClass {
   GabbleOlpcViewClass parent_class;
+
+  TpDBusPropertiesMixinClass dbus_props_class;
 };
 
 struct _GabbleOlpcBuddyView {
-- 
1.5.6.5




More information about the Telepathy-commits mailing list