diff options
| author | Colomban Wendling <ban@herbesfolles.org> | 2016-12-18 16:36:13 +0100 |
|---|---|---|
| committer | Colomban Wendling <ban@herbesfolles.org> | 2016-12-18 16:36:13 +0100 |
| commit | 729a6b77fc344ea19a7727b44abe98cfb86a9fbc (patch) | |
| tree | 7637c16b51294244efbbcbd7e5d26e48594a55c6 /gtk/ScintillaGTKAccessible.h | |
| parent | 6ec638201f5600dd24dcaaf580c499200fdbddbe (diff) | |
| download | scintilla-mirror-729a6b77fc344ea19a7727b44abe98cfb86a9fbc.tar.gz | |
GTK: Ensure styles are valid when retrieving them for accessibility purposes
Diffstat (limited to 'gtk/ScintillaGTKAccessible.h')
| -rw-r--r-- | gtk/ScintillaGTKAccessible.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/ScintillaGTKAccessible.h b/gtk/ScintillaGTKAccessible.h index 94430636b..fa9698417 100644 --- a/gtk/ScintillaGTKAccessible.h +++ b/gtk/ScintillaGTKAccessible.h @@ -73,6 +73,12 @@ private: return sci->pdoc->MovePositionOutsideChar(pos + 1, 1, true); } + int StyleAt(Position position, bool ensureStyle = false) { + if (ensureStyle) + sci->pdoc->EnsureStyledTo(position); + return sci->pdoc->StyleAt(position); + } + // For AtkText gchar *GetTextRangeUTF8(Position startByte, Position endByte); gchar *GetText(int startChar, int endChar); |
