summaryrefslogtreecommitdiff
path: root/atk/atkobject.c
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2012-07-17 00:41:06 +0200
committerAlejandro Piñeiro <apinheiro@igalia.com>2012-07-17 00:46:17 +0200
commita1d5ca861045855d9a2c25ef37734d65b081f27c (patch)
tree147de6fae4dfc7b907270896554318c7cef80c8b /atk/atkobject.c
parent7851a7d37f5df05cd015afeb5475d42ea65ec176 (diff)
downloadatk-a1d5ca861045855d9a2c25ef37734d65b081f27c.tar.gz
AtkRelation: added method that checks relationship and target
Note: the algorithm to make this search doesn't have a really good theorical performance, but this is part caused by the current internal structure by AtkRelationSet and AtkRelation https://bugzilla.gnome.org/show_bug.cgi?id=672869
Diffstat (limited to 'atk/atkobject.c')
-rwxr-xr-xatk/atkobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/atk/atkobject.c b/atk/atkobject.c
index b197d2a..4817e16 100755
--- a/atk/atkobject.c
+++ b/atk/atkobject.c
@@ -1636,7 +1636,8 @@ atk_object_add_relationship (AtkObject *object,
g_return_val_if_fail (ATK_IS_OBJECT (object), FALSE);
g_return_val_if_fail (ATK_IS_OBJECT (target), FALSE);
- if (atk_relation_set_contains (object->relation_set, relationship))
+ if (atk_relation_set_contains_target (object->relation_set,
+ relationship, target))
return FALSE;
array[0] = target;