[PATCH 6/9] core: Set an order when creating a relation ship
- From: "Juan A. Suarez Romero" <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: [PATCH 6/9] core: Set an order when creating a relation ship
- Date: Mon, 21 Feb 2011 10:36:32 +0100
When relating k1 and k2 keys, the resulting list will be related(k1&k2) =
[related(k1), related(k2)].
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
---
src/grl-plugin-registry.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/grl-plugin-registry.c b/src/grl-plugin-registry.c
index c5944c5..74a4a67 100644
--- a/src/grl-plugin-registry.c
+++ b/src/grl-plugin-registry.c
@@ -845,10 +845,10 @@ grl_plugin_registry_register_metadata_relation (GrlPluginRegistry *registry,
return;
}
- /* Merge both relations */
- for (key1_peer = key1_partners;
+ /* Merge both relations: [related(key1), related(key2)] */
+ for (key1_peer = g_list_last (key1_partners);
key1_peer;
- key1_peer = g_list_next (key1_peer)) {
+ key1_peer = g_list_previous (key1_peer)) {
/* Search key1 peer in key2 partners */
for (key2_peer = key2_partners;
key2_peer && key2_peer != key1_peer;
--
1.7.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]