After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672869 - Required a method to check if a relationset contains a relation taking into account relationship and target
Required a method to check if a relationset contains a relation taking into a...
Status: RESOLVED FIXED
Product: atk
Classification: Platform
Component: atk
unspecified
Other Linux
: Normal normal
: ---
Assigned To: ATK maintainer(s)
ATK maintainer(s)
: 679965 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-03-26 18:23 UTC by Alejandro Piñeiro Iglesias (IRC: infapi00)
Modified: 2012-07-16 23:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-03-26 18:23:41 UTC
At this moment you only can check if a relationset contains a relationship based on the relationship. This makes sense from an AT POV. As the AT would ask for a interesting relationship and then it will ask for all the targets.

But as bug 578602, for ATK implementation it would be also interesting to check if a relation-set contains a relationship with a specific target, to check if it is possible to add the same target twice.

Proposed API (final name is a work in progress):

/**
 * atk_relation_set_contains_extra:
 * @set: an #AtkRelationSet
 * @relationship: an #AtkRelationType
 * @target: an #AtkObject
 *
 * Determines whether the relation set contains a relation that matches the
 * specified type and target
 *
 * Returns: %TRUE if @relationship is the relationship type of a relation
 * in @set with @target as one of his targets, %FALSE otherwise

NOTE: this bug report will also solve the regression introduced on bug 578602 fix.
Comment 1 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-07-16 18:28:01 UTC
*** Bug 679965 has been marked as a duplicate of this bug. ***
Comment 2 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-07-16 23:10:42 UTC
Solved:

http://git.gnome.org/browse/atk/commit/?id=a1d5ca861045855d9a2c25ef37734d65b081f27c