From 2dae0afb60297b9c90d1d2dcf4dba8753dd8b73a Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 21 Nov 2008 16:16:33 +0000 Subject: Changed EmpathyEventManager to not rely on the Direction property of the file channel. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1780 --- src/empathy-event-manager.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index 75096b4a2..913e69c9f 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -227,19 +227,21 @@ event_manager_filter_channel_cb (EmpathyDispatcher *dispatcher, g_object_unref (tp_group); } else if (!tp_strdiff (channel_type, EMP_IFACE_CHANNEL_TYPE_FILE)) { - GValue *direction; + GValue *state; tp_cli_dbus_properties_run_get (channel, -1, EMP_IFACE_CHANNEL_TYPE_FILE, - "Direction", - &direction, + "State", + &state, NULL, NULL); + DEBUG ("file channel with state %u", g_value_get_uint (state)); + /* Only deal with incoming channels */ - if (g_value_get_uint (direction) == - EMP_FILE_TRANSFER_DIRECTION_INCOMING) { + if (g_value_get_uint (state) == + EMP_FILE_TRANSFER_STATE_LOCAL_PENDING) { EmpathyContact *contact; gchar *msg; McAccount *account; @@ -263,7 +265,7 @@ event_manager_filter_channel_cb (EmpathyDispatcher *dispatcher, g_free (msg); } - g_value_unset (direction); + g_value_unset (state); } g_free (channel_type); -- cgit v1.2.3