diff --git a/configure.ac b/configure.ac index 74b3c44c61..a4a8000c8e 100644 --- a/configure.ac +++ b/configure.ac @@ -96,7 +96,6 @@ src/orca/scripts/apps/gajim/Makefile src/orca/scripts/apps/gcalctool/Makefile src/orca/scripts/apps/gedit/Makefile src/orca/scripts/apps/gnome-documents/Makefile -src/orca/scripts/apps/gnome-search-tool/Makefile src/orca/scripts/apps/gnome-shell/Makefile src/orca/scripts/apps/kwin/Makefile src/orca/scripts/apps/notification-daemon/Makefile diff --git a/src/orca/scripts/apps/Makefile.am b/src/orca/scripts/apps/Makefile.am index d41c3f1c80..90df6e83af 100644 --- a/src/orca/scripts/apps/Makefile.am +++ b/src/orca/scripts/apps/Makefile.am @@ -9,7 +9,6 @@ SUBDIRS = \ gedit \ gnome-documents \ gnome-shell \ - gnome-search-tool \ kwin \ notification-daemon \ notify-osd \ diff --git a/src/orca/scripts/apps/__init__.py b/src/orca/scripts/apps/__init__.py index c442fd7a95..157501a8e0 100644 --- a/src/orca/scripts/apps/__init__.py +++ b/src/orca/scripts/apps/__init__.py @@ -7,7 +7,6 @@ 'gcalctool', 'gedit', 'gnome-documents', - 'gnome-search-tool', 'gnome-shell', 'kwin', 'notification-daemon', diff --git a/src/orca/scripts/apps/gnome-search-tool/Makefile.am b/src/orca/scripts/apps/gnome-search-tool/Makefile.am deleted file mode 100644 index 8968c76554..0000000000 --- a/src/orca/scripts/apps/gnome-search-tool/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -orca_python_PYTHON = \ - __init__.py \ - script.py - -orca_pythondir=$(pkgpythondir)/scripts/apps/gnome-search-tool diff --git a/src/orca/scripts/apps/gnome-search-tool/__init__.py b/src/orca/scripts/apps/gnome-search-tool/__init__.py deleted file mode 100644 index 3a7b855e75..0000000000 --- a/src/orca/scripts/apps/gnome-search-tool/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# Orca -# -# Copyright 2006-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 gnome-search-tool""" - -# https://gitlab.gnome.org/GNOME/orca/-/issues/358 -# ruff: noqa: F401 -from .script import Script - diff --git a/src/orca/scripts/apps/gnome-search-tool/script.py b/src/orca/scripts/apps/gnome-search-tool/script.py deleted file mode 100644 index 4424f44151..0000000000 --- a/src/orca/scripts/apps/gnome-search-tool/script.py +++ /dev/null @@ -1,67 +0,0 @@ -# Orca -# -# Copyright 2006-2008 Sun Microsystems Inc. -# Copyright 2014 Igalia, S.L. -# -# 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 gnome-search-tool""" - -__id__ = "$Id$" -__version__ = "$Revision$" -__date__ = "$Date$" -__copyright__ = "Copyright (c) 2005-2008 Sun Microsystems Inc." \ - "Copyright (c) 2014 Igalia, S.L." -__license__ = "LGPL" - -import orca.event_manager as event_manager -import orca.scripts.toolkits.gtk as gtk -from orca.ax_utilities import AXUtilities - -######################################################################## -# # -# The gnome-search-tool script class. # -# # -######################################################################## - -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) - self._floodEvents = ['object:children-changed:add', - 'object:property-change:accessible-name', - 'object:text-changed:insert', - 'object:text-changed:delete'] - - def onShowingChanged(self, event): - """Callback for object:state-changed:showing events.""" - - if AXUtilities.is_animation(event.source): - _manager = event_manager.getManager() - if event.detail1: - _manager.ignoreEventTypes(self._floodEvents) - else: - _manager.unignoreEventTypes(self._floodEvents) - self.presentTitle(None) - return - - gtk.Script.onShowingChanged(self, event)