aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTKAccessible.h
diff options
context:
space:
mode:
authorColomban Wendling <ban@herbesfolles.org>2016-12-18 16:35:22 +0100
committerColomban Wendling <ban@herbesfolles.org>2016-12-18 16:35:22 +0100
commit6ec638201f5600dd24dcaaf580c499200fdbddbe (patch)
tree6569a4c565bc1ee3043983c1b779e031676f29da /gtk/ScintillaGTKAccessible.h
parenta19969b8cc1d1de3d8119e831a8e017dd256361e (diff)
downloadscintilla-mirror-6ec638201f5600dd24dcaaf580c499200fdbddbe.tar.gz
GTK: Fix reporting deletion length in the accessible
We cannot compute the length in characters after the text has been deleted, so we need to compute it in BEFOREDELETE. However, we need to emit the signal once the buffer has actually changed, so we need to cache the value in-between those events.
Diffstat (limited to 'gtk/ScintillaGTKAccessible.h')
-rw-r--r--gtk/ScintillaGTKAccessible.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/ScintillaGTKAccessible.h b/gtk/ScintillaGTKAccessible.h
index 93883025d..94430636b 100644
--- a/gtk/ScintillaGTKAccessible.h
+++ b/gtk/ScintillaGTKAccessible.h
@@ -20,6 +20,8 @@ private:
GtkAccessible *accessible;
ScintillaGTK *sci;
+ // cached length of the deletion, in characters (see Notify())
+ int deletionLengthChar;
// local state for comparing
Position old_pos;
std::vector<SelectionRange> old_sels;