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

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


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

diff --git a/telepathy-glib/base-connection-manager.c b/telepathy-glib/base-connection-manager.c
index f91c42c..3bedc07 100644
--- a/telepathy-glib/base-connection-manager.c
+++ b/telepathy-glib/base-connection-manager.c
@@ -533,6 +533,16 @@ tp_cm_param_setter_offset (const TpCMParamSpec *paramspec,
           DEBUG ("%s = %" G_GUINT64_FORMAT, paramspec->name, i);
         }
 
+      case DBUS_TYPE_DOUBLE:
+        {
+          gdouble *save_to = (gdouble *) (params_mem + paramspec->offset);
+          gdouble i = g_value_get_double (value);
+
+          g_assert (paramspec->gtype == G_TYPE_DOUBLE);
+          *save_to = i;
+          DEBUG ("%s = %f", paramspec->name, i);
+        }
+
       case DBUS_TYPE_BOOLEAN:
         {
           gboolean *save_to = (gboolean *) (params_mem + paramspec->offset);
-- 
1.5.6.5




More information about the telepathy-commits mailing list