empathy r1780 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1780 - trunk/src
- Date: Fri, 21 Nov 2008 16:16:33 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:16:33 2008
New Revision: 1780
URL: http://svn.gnome.org/viewvc/empathy?rev=1780&view=rev
Log:
Changed EmpathyEventManager to not rely on the Direction property of the file channel. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/src/empathy-event-manager.c
Modified: trunk/src/empathy-event-manager.c
==============================================================================
--- trunk/src/empathy-event-manager.c (original)
+++ trunk/src/empathy-event-manager.c Fri Nov 21 16:16:33 2008
@@ -227,19 +227,21 @@
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 @@
g_free (msg);
}
- g_value_unset (direction);
+ g_value_unset (state);
}
g_free (channel_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]