[Telepathy-commits] [telepathy-gabble/master] tube-stream: Parameters property is now read only
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Feb 11 03:39:15 PST 2009
---
src/tube-stream.c | 36 ++----------------------------------
1 files changed, 2 insertions(+), 34 deletions(-)
diff --git a/src/tube-stream.c b/src/tube-stream.c
index abf7b22..250c1c0 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -1132,38 +1132,6 @@ gabble_tube_stream_constructor (GType type,
return obj;
}
-static gboolean
-tube_iface_props_setter (GObject *object,
- GQuark interface,
- GQuark name,
- const GValue *value,
- gpointer setter_data,
- GError **error)
-{
- GabbleTubeStream *self = GABBLE_TUBE_STREAM (object);
- GabbleTubeStreamPrivate *priv = GABBLE_TUBE_STREAM_GET_PRIVATE (self);
-
- g_return_val_if_fail (interface == GABBLE_IFACE_QUARK_CHANNEL_INTERFACE_TUBE,
- FALSE);
-
- if (name != g_quark_from_static_string ("Parameters"))
- {
- g_object_set_property (object, setter_data, value);
- return TRUE;
- }
-
- if (priv->state != GABBLE_TUBE_CHANNEL_STATE_NOT_OFFERED)
- {
- g_set_error (error, TP_ERRORS, TP_ERROR_NOT_AVAILABLE,
- "Can change parameters only if the tube is not offered");
- return FALSE;
- }
-
- g_object_set (self, "parameters", g_value_get_boxed (value), NULL);
-
- return TRUE;
-}
-
static void
gabble_tube_stream_class_init (GabbleTubeStreamClass *gabble_tube_stream_class)
{
@@ -1184,7 +1152,7 @@ gabble_tube_stream_class_init (GabbleTubeStreamClass *gabble_tube_stream_class)
{ NULL }
};
static TpDBusPropertiesMixinPropImpl tube_iface_props[] = {
- { "Parameters", "parameters", "parameters" },
+ { "Parameters", "parameters", NULL },
{ "State", "state", NULL },
{ NULL }
};
@@ -1201,7 +1169,7 @@ gabble_tube_stream_class_init (GabbleTubeStreamClass *gabble_tube_stream_class)
},
{ GABBLE_IFACE_CHANNEL_INTERFACE_TUBE,
tp_dbus_properties_mixin_getter_gobject_properties,
- tube_iface_props_setter,
+ NULL,
tube_iface_props,
},
{ NULL }
--
1.5.6.5
More information about the telepathy-commits
mailing list