Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the status icon more a11y friendly #375

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tyrylu
Copy link

@tyrylu tyrylu commented Feb 18, 2022

This allows assistive technologies to see the tooltip of the status icon, which makes it much more useful.

@@ -92,6 +92,7 @@ gpm_tray_icon_set_tooltip (GpmTrayIcon *icon, const gchar *tooltip)
g_return_val_if_fail (tooltip != NULL, FALSE);

gtk_status_icon_set_tooltip_text (icon->priv->status_icon, tooltip);
gtk_status_icon_set_title (icon->priv->status_icon, tooltip);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please respect our code-style. Indent is ugly.

@raveit65
Copy link
Member

raveit65 commented Mar 13, 2022

[rave@mother mate-power-manager]$ LANG=C
[rave@mother mate-power-manager]$ git pull https://github.com/tyrylu/mate-power-manager.git trayicon_a11y
From https://github.com/tyrylu/mate-power-manager
 * branch            trayicon_a11y -> FETCH_HEAD
fatal: Not possible to fast-forward, aborting.
[rave@mother mate-power-manager]$

@raveit65
Copy link
Member

raveit65 commented Mar 13, 2022

I don't see any title in the tooltip with PR. It simply looks like before.

@tyrylu
Copy link
Author

tyrylu commented Mar 13, 2022

Try using Orca for your test, this PR introduces no visual changes.

@raveit65
Copy link
Member

raveit65 commented Mar 13, 2022

Sorry, i am not familiar with orca.
Pushing that to another reviewer.

@zhuyaliang
Copy link
Member

gtk_status_icon_set_title has been deprecated since version 3.14 and should not be used in newly-written code.

@tyrylu
Copy link
Author

tyrylu commented Apr 25, 2022

That's true, however the power manager uses the status icon APIs, so this PR adds accessibility without rewriting the entire status icon handling code which might be somewhere on the roadmap or it might not, I don't know and i have no idea how Mate handles the new notifications either.

@lukefromdc
Copy link
Member

lukefromdc commented Apr 27, 2022 via email

@lukefromdc
Copy link
Member

Any updates on this?

@tyrylu
Copy link
Author

tyrylu commented Nov 7, 2022

I'd like to know myself...

@lukefromdc lukefromdc requested a review from a team November 7, 2022 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants