More sound support added.

This commit is contained in:
Storm Dragon
2025-12-29 22:20:02 -05:00
parent 99a479567e
commit f7e5fd518f
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# Maintainer: Storm Dragon <storm_dragon@stormux.org>
pkgname=cthulhu
pkgver=2025.12.28
pkgver=2025.12.29
pkgrel=1
pkgdesc="Desktop-agnostic screen reader with plugin system, forked from Orca"
url="https://git.stormux.org/storm/cthulhu"
+1
View File
@@ -59,6 +59,7 @@ ROLE_SOUND_ALIASES = {
Atspi.Role.TOGGLE_BUTTON: ["toggle_button", "button"],
Atspi.Role.RADIO_BUTTON: ["radio_button", "radio"],
Atspi.Role.CHECK_BOX: ["checkbox", "check_box"],
Atspi.Role.COMBO_BOX: ["combobox", "combo_box"],
}
ROLE_STATE_SOUND_BASES = {
+5 -2
View File
@@ -710,8 +710,8 @@ class SpeechGenerator(generator.Generator):
if not result:
return result
if _settingsManager.getSetting('roleSoundPresentation') \
== settings.ROLE_SOUND_PRESENTATION_SPEECH_ONLY:
roleSoundPresentation = _settingsManager.getSetting('roleSoundPresentation')
if roleSoundPresentation == settings.ROLE_SOUND_PRESENTATION_SPEECH_ONLY:
return result
if not _settingsManager.getSetting('enableSound'):
@@ -721,6 +721,9 @@ class SpeechGenerator(generator.Generator):
if not icon:
return result
if roleSoundPresentation == settings.ROLE_SOUND_PRESENTATION_SOUND_ONLY:
return [icon]
return [icon] + result
def _generateCheckedState(self, obj, **args):