More sound support added.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user