From 5dbe5271f20c69c735632717c64f292aedea87a7 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Wed, 10 Aug 2011 15:34:03 +0200 Subject: [PATCH 3/4] 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 5f8b981..de46441 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 io_err_cleanup_func(gpointer data) { @@ -256,7 +256,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