summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-05-29 15:20:47 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-06-26 15:21:31 +0100
commit978b667252db9c824532431052727171155261c8 (patch)
treeb01b566b39b75aaae39e32c68e1d9ca2faae20e6
parent112c8a655c0529999d63b932ea84c2510bd1043f (diff)
downloadtelepathy-salut-978b667252db9c824532431052727171155261c8.tar.gz
call update_tubes_info once the tube has been opened
We just have to upgrade our tubes announcements when a tube has been offered or when one has been opened.
-rw-r--r--src/salut-tubes-channel.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/salut-tubes-channel.c b/src/salut-tubes-channel.c
index 3adde751..403de5b1 100644
--- a/src/salut-tubes-channel.c
+++ b/src/salut-tubes-channel.c
@@ -1251,6 +1251,8 @@ tube_opened_cb (SalutTubeIface *tube,
add_yourself_in_dbus_names (self, tube_id);
}
+ update_tubes_info (self);
+
tp_svc_channel_type_tubes_emit_tube_state_changed (self, tube_id,
TP_TUBE_STATE_OPEN);
}
@@ -1332,12 +1334,6 @@ create_new_tube (SalutTubesChannel *self,
g_object_get (tube, "state", &state, NULL);
- if (state == TP_TUBE_CHANNEL_STATE_OPEN)
- {
- /* FIXME: does it still make sense to call it here? */
- update_tubes_info (self);
- }
-
/* The old API doesn't know the "not offered" state, so we have to wait that
* the tube is offered before announcing it. */
if (state != TP_TUBE_CHANNEL_STATE_NOT_OFFERED)
@@ -1727,8 +1723,6 @@ salut_tubes_channel_accept_d_bus_tube (TpSvcChannelTypeTubes *iface,
salut_tube_iface_accept (tube, NULL);
- update_tubes_info (self);
-
g_object_get (tube,
"dbus-address", &addr,
NULL);
@@ -2270,8 +2264,6 @@ salut_tubes_channel_accept_stream_tube (TpSvcChannelTypeTubes *iface,
return;
}
- update_tubes_info (self);
-
g_object_get (tube, "address", &address, NULL);
tp_svc_channel_type_tubes_return_from_accept_stream_tube (context,