[Telepathy-commits] [telepathy-glib/master] tp_cm_param_setter_offset: add support for DBUS_TYPE_OBJECT_PATH

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Mar 25 09:29:31 PDT 2009


---
 telepathy-glib/base-connection-manager.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/base-connection-manager.c b/telepathy-glib/base-connection-manager.c
index 3bedc07..5326b0b 100644
--- a/telepathy-glib/base-connection-manager.c
+++ b/telepathy-glib/base-connection-manager.c
@@ -543,6 +543,17 @@ tp_cm_param_setter_offset (const TpCMParamSpec *paramspec,
           DEBUG ("%s = %f", paramspec->name, i);
         }
 
+      case DBUS_TYPE_OBJECT_PATH:
+        {
+          gchar **save_to = (gchar **) (params_mem + paramspec->offset);
+
+          g_assert (paramspec->gtype == G_TYPE_BOXED);
+          g_free (*save_to);
+
+          *save_to = g_value_dup_boxed (value);
+          DEBUG ("%s = \"%s\"", paramspec->name, *save_to);
+        }
+
       case DBUS_TYPE_BOOLEAN:
         {
           gboolean *save_to = (gboolean *) (params_mem + paramspec->offset);
-- 
1.5.6.5




More information about the telepathy-commits mailing list