Details

[Home]

Issue of the Implementation # S0573

Brief

atk_relation_set_add always adds relation to the set

Detailed Description

atk_relation_set_add always adds relation to the set, no matter if it is already present in the set or not.

The standard requires that the relation should not be added if it is already present in the set.

Problem location(s) in the standard

ATK 1.9.0 Reference Manual, AtkRelationSet

Example

guint n_old = atk_relation_set_get_n_relations(set);

atk_relation_set_add(set, relation);
atk_relation_set_add(set, relation);

guint n_new = atk_relation_set_get_n_relations(set);
// Now n_new == n_old + 2.
// But n_new should equal (n_old + 1) if the behaviour 
// of atk_relation_set_add complies with the standard.

Component

gtk-atk 1.9.0 or later

Accepted

Gnome Bugzilla 478583

Status

Fixed in ATK 1.25.2 for GNOME 2.25.2.

[Home]