From 63e3d9da4046a7c7959c6aa1ea01ed98c00a5b85 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 10 Aug 2011 15:34:03 +0200 Subject: [PATCH 04/18] IdleServerConnection: Replace g_signal_emit_by_name with g_signal_emit --- src/idle-server-connection.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idle-server-connection.c b/src/idle-server-connection.c index b6c7077..10f185b 100644 --- a/src/idle-server-connection.c +++ b/src/idle-server-connection.c @@ -230,7 +230,7 @@ static void change_state(IdleServerConnection *conn, IdleServerConnectionState s IDLE_DEBUG("emitting status-changed, state %u, reason %u", state, reason); priv->state = state; - g_signal_emit_by_name(conn, "status-changed", state, reason); + g_signal_emit(conn, signals[STATUS_CHANGED], 0, state, reason); } static void _input_stream_read(IdleServerConnection *conn, GInputStream *input_stream, GAsyncReadyCallback callback) { @@ -263,7 +263,7 @@ static void _input_stream_read_ready(GObject *source_object, GAsyncResult *res, goto disconnect; } - g_signal_emit_by_name(conn, "received", priv->input_buffer); + g_signal_emit(conn, signals[RECEIVED], 0, priv->input_buffer); if (g_cancellable_is_cancelled(priv->cancellable)) goto disconnect; -- 1.7.6.2