Usage of Gtk.Accessible.announce()

Hi,

There is a new API Gtk.Accessible.announce() in gtk 4.14
For what kind of real-life usecases is it intended for?
(I couldn’t find anyone using it in gitlab…)

Could it be relevant for these cases?

  • document loading finished
  • found NN occurrences of the search pattern
  • drag’n’drop accepted/rejected

I suppose we don’t need an announce if there is already another graphical notification (typically a toast), right?

Does it matter which widget is used to send that announce?

1 Like

Yes, your examples seem okay, but in the document loading case you might not want to do that, as Orca does it sometimes as well (in case of web documents). Which widget sends the notification does not matter at all in the current implementation, and yes, if there’s a visual one, ideally, you should not need this API, but reading toasts is broken right now, so using gtk_accessible_announce might be warranted in this case, but the situation will certainly change in this area.

1 Like

Thank you, that’s exactly what I wanted to know :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.