[telepathy-mission-control/master] Invoke callbacks in the right order
Alberto Mardegan
alberto.mardegan at nokia.com
Fri Oct 23 04:18:40 PDT 2009
Callback contexts are added into the list at the beginning (g_slist_prepend),
so we must reverse the list before invoking them, to ensure that callbacks are
invoked in the same order as they have been installed.
---
libmcclient/dbus-api.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libmcclient/dbus-api.c b/libmcclient/dbus-api.c
index c897052..3181578 100644
--- a/libmcclient/dbus-api.c
+++ b/libmcclient/dbus-api.c
@@ -111,6 +111,7 @@ properties_get_all_cb (TpProxy *proxy, GHashTable *props,
if (error == NULL)
iface_status->create_props (proxy, props);
+ iface_status->contexts = g_slist_reverse (iface_status->contexts);
for (list = iface_status->contexts; list; list = list->next)
{
ctx = list->data;
--
1.5.6.5
More information about the telepathy-commits
mailing list