[orca] Adjust the item count for Gedit's Suggestions list to not include header
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Adjust the item count for Gedit's Suggestions list to not include header
- Date: Wed, 19 Aug 2015 00:24:04 +0000 (UTC)
commit 2db243de21a275fa1634b8deb9621c95f7970959
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Aug 18 20:22:51 2015 -0400
Adjust the item count for Gedit's Suggestions list to not include header
src/orca/scripts/apps/gedit/spellcheck.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/gedit/spellcheck.py b/src/orca/scripts/apps/gedit/spellcheck.py
index b8fd8dc..15d1f31 100644
--- a/src/orca/scripts/apps/gedit/spellcheck.py
+++ b/src/orca/scripts/apps/gedit/spellcheck.py
@@ -66,4 +66,6 @@ class SpellCheck(spellcheck.SpellCheck):
return pyatspi.findDescendant(root, isTable)
def _getSuggestionIndexAndPosition(self, suggestion):
- return self._script.utilities.getPositionAndSetSize(suggestion)
+ index, total = self._script.utilities.getPositionAndSetSize(suggestion)
+ total -= 1
+ return index, total
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]