diff --git a/configure.ac b/configure.ac index 9d0377bc4f..74b3c44c61 100644 --- a/configure.ac +++ b/configure.ac @@ -102,7 +102,6 @@ src/orca/scripts/apps/kwin/Makefile src/orca/scripts/apps/notification-daemon/Makefile src/orca/scripts/apps/notify-osd/Makefile src/orca/scripts/apps/pidgin/Makefile -src/orca/scripts/apps/rhythmbox/Makefile src/orca/scripts/apps/soffice/Makefile src/orca/scripts/apps/SeaMonkey/Makefile src/orca/scripts/apps/smuxi-frontend-gnome/Makefile diff --git a/src/orca/scripts/apps/Makefile.am b/src/orca/scripts/apps/Makefile.am index 3fe4aa0bd4..d41c3f1c80 100644 --- a/src/orca/scripts/apps/Makefile.am +++ b/src/orca/scripts/apps/Makefile.am @@ -14,7 +14,6 @@ SUBDIRS = \ notification-daemon \ notify-osd \ pidgin \ - rhythmbox \ soffice \ SeaMonkey \ smuxi-frontend-gnome \ diff --git a/src/orca/scripts/apps/__init__.py b/src/orca/scripts/apps/__init__.py index ba8661625d..c442fd7a95 100644 --- a/src/orca/scripts/apps/__init__.py +++ b/src/orca/scripts/apps/__init__.py @@ -13,7 +13,6 @@ 'notification-daemon', 'notify-osd', 'pidgin', - 'rhythmbox', 'soffice', 'SeaMonkey', 'smuxi-frontend-gnome', diff --git a/src/orca/scripts/apps/rhythmbox/Makefile.am b/src/orca/scripts/apps/rhythmbox/Makefile.am deleted file mode 100644 index 45e038f20d..0000000000 --- a/src/orca/scripts/apps/rhythmbox/Makefile.am +++ /dev/null @@ -1,7 +0,0 @@ -orca_python_PYTHON = \ - __init__.py \ - formatting.py \ - script.py - -orca_pythondir=$(pkgpythondir)/scripts/apps/rhythmbox - diff --git a/src/orca/scripts/apps/rhythmbox/__init__.py b/src/orca/scripts/apps/rhythmbox/__init__.py deleted file mode 100644 index 41aace25a2..0000000000 --- a/src/orca/scripts/apps/rhythmbox/__init__.py +++ /dev/null @@ -1,30 +0,0 @@ -# Orca -# -# Copyright 2005-2008 Sun Microsystems Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., Franklin Street, Fifth Floor, -# Boston MA 02110-1301 USA. - -"""Custom script for rhythmbox.""" - -__id__ = "$Id$" -__version__ = "$Revision$" -__date__ = "$Date$" -__copyright__ = "Copyright (c) 2005-2008 Sun Microsystems Inc." -__license__ = "LGPL" - -# https://gitlab.gnome.org/GNOME/orca/-/issues/358 -# ruff: noqa: F401 -from .script import Script diff --git a/src/orca/scripts/apps/rhythmbox/formatting.py b/src/orca/scripts/apps/rhythmbox/formatting.py deleted file mode 100644 index 34d65eec37..0000000000 --- a/src/orca/scripts/apps/rhythmbox/formatting.py +++ /dev/null @@ -1,53 +0,0 @@ -# Orca -# -# Copyright 2006-2009 Sun Microsystems Inc. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., Franklin Street, Fifth Floor, -# Boston MA 02110-1301 USA. - -"""Custom formatting for rhythmbox.""" - -__id__ = "$Id$" -__version__ = "$Revision$" -__date__ = "$Date$" -__copyright__ = "Copyright (c) 2005-2009 Sun Microsystems Inc." -__license__ = "LGPL" - -import copy -import gi -gi.require_version("Atspi", "2.0") -from gi.repository import Atspi - -import orca.formatting - -formatting = { - 'speech': { - # When the rating widget changes values, it emits an accessible - # name changed event. Because it is of ROLE_UNKNOWN, the default - # speech_generator's _getDefaultSpeech handles it. And because - # the widget is already focused, it doesn't speak anything. We - # want to speak the widget's name as it contains the number of - # stars being displayed. - # - Atspi.Role.UNKNOWN: { - 'focused': 'labelAndName' - }, - } -} - -class Formatting(orca.formatting.Formatting): - def __init__(self, script): - orca.formatting.Formatting.__init__(self, script) - self.update(copy.deepcopy(formatting)) diff --git a/src/orca/scripts/apps/rhythmbox/script.py b/src/orca/scripts/apps/rhythmbox/script.py deleted file mode 100644 index 3fa76201a2..0000000000 --- a/src/orca/scripts/apps/rhythmbox/script.py +++ /dev/null @@ -1,45 +0,0 @@ -# Orca -# -# Copyright 2005-2009 Sun Microsystems Inc. -# Copyright 2010 Joanmarie Diggs -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., Franklin Street, Fifth Floor, -# Boston MA 02110-1301 USA. - -"""Custom script for rhythmbox.""" - -__id__ = "$Id$" -__version__ = "$Revision$" -__date__ = "$Date$" -__copyright__ = "Copyright (c) 2005-2009 Sun Microsystems Inc." \ - "Copyright (c) 2010 Joanmarie Diggs" -__license__ = "LGPL" - -import orca.scripts.toolkits.gtk as gtk -from .formatting import Formatting - -class Script(gtk.Script): - - def __init__(self, app): - """Creates a new script for the given application. - - Arguments: - - app: the application to create a script for. - """ - gtk.Script.__init__(self, app) - - def getFormatting(self): - """Returns the formatting strings for this script.""" - return Formatting(self)