aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tubes.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-20 05:04:12 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-20 05:04:12 +0800
commit3b6ead69e34b2db41cd85ea4f936f8076cea9474 (patch)
tree38c09152ad71d1ad756615b4dc7114fc26387824 /libempathy/empathy-tubes.c
parentf92e9e7581e91262af1fd3f7aeaeadfd3777e4fe (diff)
downloadgsoc2013-empathy-3b6ead69e34b2db41cd85ea4f936f8076cea9474.tar
gsoc2013-empathy-3b6ead69e34b2db41cd85ea4f936f8076cea9474.tar.gz
gsoc2013-empathy-3b6ead69e34b2db41cd85ea4f936f8076cea9474.tar.bz2
gsoc2013-empathy-3b6ead69e34b2db41cd85ea4f936f8076cea9474.tar.lz
gsoc2013-empathy-3b6ead69e34b2db41cd85ea4f936f8076cea9474.tar.xz
gsoc2013-empathy-3b6ead69e34b2db41cd85ea4f936f8076cea9474.tar.zst
gsoc2013-empathy-3b6ead69e34b2db41cd85ea4f936f8076cea9474.zip
Replace channel closed signal with invalidated signal
svn path=/trunk/; revision=977
Diffstat (limited to 'libempathy/empathy-tubes.c')
-rw-r--r--libempathy/empathy-tubes.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/libempathy/empathy-tubes.c b/libempathy/empathy-tubes.c
index 4b72a8da2..215c4f764 100644
--- a/libempathy/empathy-tubes.c
+++ b/libempathy/empathy-tubes.c
@@ -126,16 +126,19 @@ empathy_tubes_tube_state_changed_cb (TpChannel *channel,
static void
-empathy_tubes_channel_closed_cb (TpChannel *channel,
- gpointer data)
+empathy_tubes_channel_invalidated_cb (TpChannel *channel,
+ guint domain,
+ gint code,
+ gchar *message,
+ gpointer data)
{
EmpathyTubes *tubes = EMPATHY_TUBES (data);
EmpathyTubesPriv *priv = GET_PRIV (tubes);
- empathy_debug (DEBUG_DOMAIN, "Channel closed");
+ empathy_debug (DEBUG_DOMAIN, "Channel invalidated");
g_signal_handlers_disconnect_by_func (priv->channel,
- empathy_tubes_channel_closed_cb, tubes);
+ empathy_tubes_channel_invalidated_cb, tubes);
// disconnect tubes interface signals?
}
@@ -152,7 +155,7 @@ empathy_tubes_dispose (GObject *object)
if (priv->channel)
{
g_signal_handlers_disconnect_by_func (priv->channel,
- empathy_tubes_channel_closed_cb, object);
+ empathy_tubes_channel_invalidated_cb, object);
g_object_unref (priv->channel);
priv->channel = NULL;
}
@@ -213,8 +216,8 @@ empathy_tubes_constructor (GType type,
EmpathyTubes *tubes = EMPATHY_TUBES (object);
EmpathyTubesPriv *priv = GET_PRIV (tubes);
- g_signal_connect (priv->channel, "closed",
- G_CALLBACK (empathy_tubes_channel_closed_cb), tubes);
+ g_signal_connect (priv->channel, "invalidated",
+ G_CALLBACK (empathy_tubes_channel_invalidated_cb), tubes);
tp_cli_channel_type_tubes_connect_to_new_tube (priv->channel,
empathy_tubes_new_tube_cb, NULL, NULL, G_OBJECT (tubes), NULL);