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 647482 - There are some overlapped methods on the ATK namespace
There are some overlapped methods on the ATK namespace
Product: atk
Classification: Platform
Component: atk
Other Linux
: Normal normal
: ---
Assigned To: ATK maintainer(s)
ATK maintainer(s)
Depends on:
Blocks: 638537
Reported: 2011-04-11 17:58 UTC by Alejandro Piñeiro Iglesias (IRC: infapi00)
Modified: 2021-06-10 11:26 UTC
See Also:
GNOME target: ---
GNOME version: ---

Testing the overlapped method on python (1.47 KB, text/x-python)
2011-04-11 17:59 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)

Description Alejandro Piñeiro Iglesias (IRC: infapi00) 2011-04-11 17:58:22 UTC
While toying with atk javascript bindings on GNOME Shell we found that some of the methods are overlapped. One example is atk_object_get_name and atk_action_get_name.

In C this is not a problem, as you need to include the namespace on the method call, but not on a object oriented language, where you do something like this:

And in fact, the output is not deterministic:
  * javascript: object.get_name calls atk_object_get_name
  * python: object.get_name calls atk_action_get_name

In the case of python there is a way to workaround this issue, but on javascript we didn't found it.

In order to solve that, we would require to provide non-overlapping methods. In this case, something like this:

  * atk_object_get_accessible_name (as the property name)
  * atk_action_get_action_name or atk_action_get_nth_name

But this is just an example. It is required to make a full review of ATK API to check if there is more cases.


Original thread with this issue:

More about introspection and ATK: bug 640625
Comment 1 Alejandro Piñeiro Iglesias (IRC: infapi00) 2011-04-11 17:59:35 UTC
Created attachment 185743 [details]
Testing the overlapped method on python

This is a little example that shows the overlapping problem on python.

It also workarounds the problem in order to call the proper ones. This workaround shouldn't be required.
Comment 2 André Klapper 2011-06-23 22:06:36 UTC
[Mass-reassigning open atk bug reports for better trackability as requested in .
If you have watched the previous assignee of this bug report as a workaround for actually getting notified of changes in atk bugs, you yourself will now have to add atk-maint@gnome.bugs to your watchlist at the bottom of to keep watching atk bug reports in GNOME Bugzilla.
Sorry for the noise: Feel free to filter for this comment in order to mass-delete the triggered bugmail.]
Comment 3 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-02-01 12:06:54 UTC
While reading recent thread about gir stability:

It was mentioned a annotation "Rename to:"

So, one option could be found those overlapping methods and use that annotation to expose it with a different name. In theory with the name that we plan to use in the future.

For example, on atk_action_get_name, add a annotation like this:

Rename to: atk_action_get_action_name

Pros and cons:

+ We could solve this problem at ATK 2.0, as it doesn't require a ATK 2.0 C API breakage
+ We could start to use the "new method" names required
- It can be method-confusing. Right now gir are used for bindings, but not for creating documentation. So Javascript developers still needs to use C API reference to check the method names. But we are saying here that we are renaming it.
- About confusion: we could introduce the same problems suggested by Ryan Lortie on that thread
Comment 4 André Klapper 2021-06-10 11:26:08 UTC
GNOME is going to shut down in favor of
As part of that, we are mass-closing older open tickets in
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of atk, then please follow
and create a ticket at

Thank you for your understanding and your help.