aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-03-05 18:55:55 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-03-05 18:55:55 +0800
commit80051800a54a1da926c53406aa5d9a98f4a8f4af (patch)
treea6d4bd5a48bb16c1aa15be869dc7af55c90b6cf8
parentdcc2eb1c4a839d9b991467bc771dede6a80a169a (diff)
downloadgsoc2013-empathy-80051800a54a1da926c53406aa5d9a98f4a8f4af.tar
gsoc2013-empathy-80051800a54a1da926c53406aa5d9a98f4a8f4af.tar.gz
gsoc2013-empathy-80051800a54a1da926c53406aa5d9a98f4a8f4af.tar.bz2
gsoc2013-empathy-80051800a54a1da926c53406aa5d9a98f4a8f4af.tar.lz
gsoc2013-empathy-80051800a54a1da926c53406aa5d9a98f4a8f4af.tar.xz
gsoc2013-empathy-80051800a54a1da926c53406aa5d9a98f4a8f4af.tar.zst
gsoc2013-empathy-80051800a54a1da926c53406aa5d9a98f4a8f4af.zip
Replace g_signal_emit_by_name by g_signal_emit (Alban Crequy).
svn path=/trunk/; revision=701
-rw-r--r--libempathy/empathy-tp-call.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index d8cb37331..681d03d85 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -110,17 +110,17 @@ tp_call_stream_state_changed_cb (DBusGProxy *channel,
if (priv->video->direction & TP_MEDIA_STREAM_DIRECTION_RECEIVE)
{
empathy_debug (DEBUG_DOMAIN, "RECEIVING");
- g_signal_emit_by_name (call, "receiving-video", TRUE);
+ g_signal_emit (call, signals[RECEIVING_VIDEO_SIGNAL], 0, TRUE);
}
if (priv->video->direction & TP_MEDIA_STREAM_DIRECTION_SEND)
{
empathy_debug (DEBUG_DOMAIN, "SENDING");
- g_signal_emit_by_name (call, "sending-video", TRUE);
+ g_signal_emit (call, signals[SENDING_VIDEO_SIGNAL], 0, TRUE);
}
}
}
- g_signal_emit_by_name (call, "status-changed");
+ g_signal_emit (call, signals[STATUS_CHANGED_SIGNAL], 0);
}
static void
@@ -236,7 +236,7 @@ tp_call_channel_closed_cb (TpChan *channel,
empathy_debug (DEBUG_DOMAIN, "Channel closed");
priv->status = EMPATHY_TP_CALL_STATUS_CLOSED;
- g_signal_emit_by_name (call, "status-changed");
+ g_signal_emit (call, signals[STATUS_CHANGED_SIGNAL], 0);
streamed_iface = tp_chan_get_interface (priv->channel,
TELEPATHY_CHAN_IFACE_STREAMED_QUARK);
@@ -277,23 +277,23 @@ tp_call_stream_direction_changed_cb (DBusGProxy *channel,
if (stream_direction & TP_MEDIA_STREAM_DIRECTION_RECEIVE)
{
empathy_debug (DEBUG_DOMAIN, "RECEIVING");
- g_signal_emit_by_name (call, "receiving-video", TRUE);
+ g_signal_emit (call, signals[RECEIVING_VIDEO_SIGNAL], 0, TRUE);
}
else
{
empathy_debug (DEBUG_DOMAIN, "NOT RECEIVING");
- g_signal_emit_by_name (call, "receiving-video", FALSE);
+ g_signal_emit (call, signals[RECEIVING_VIDEO_SIGNAL], 0, FALSE);
}
if (stream_direction & TP_MEDIA_STREAM_DIRECTION_SEND)
{
empathy_debug (DEBUG_DOMAIN, "SENDING");
- g_signal_emit_by_name (call, "sending-video", TRUE);
+ g_signal_emit (call, signals[SENDING_VIDEO_SIGNAL], 0, TRUE);
}
else
{
empathy_debug (DEBUG_DOMAIN, "NOT SENDING");
- g_signal_emit_by_name (call, "sending-video", FALSE);
+ g_signal_emit (call, signals[SENDING_VIDEO_SIGNAL], 0, FALSE);
}
}
}