diff options
| author | Neil <nyamatongwe@gmail.com> | 2016-10-26 09:14:17 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2016-10-26 09:14:17 +1100 |
| commit | dbef8326ee583d3ad79941d629b4314f359765c1 (patch) | |
| tree | 232c5963d1a9492f088583008cda144af606cace /gtk/ScintillaGTKAccessible.h | |
| parent | 7ee60fc25a08dac31ccdfb77068aae852860cc37 (diff) | |
| download | scintilla-mirror-dbef8326ee583d3ad79941d629b4314f359765c1.tar.gz | |
Include windows.h on Windows and provide a ATK_CHECK_VERSION if not defined.
Diffstat (limited to 'gtk/ScintillaGTKAccessible.h')
| -rw-r--r-- | gtk/ScintillaGTKAccessible.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/ScintillaGTKAccessible.h b/gtk/ScintillaGTKAccessible.h index de1584ded..5614c88e2 100644 --- a/gtk/ScintillaGTKAccessible.h +++ b/gtk/ScintillaGTKAccessible.h @@ -10,6 +10,10 @@ namespace Scintilla { #endif +#ifndef ATK_CHECK_VERSION +# define ATK_CHECK_VERSION(x, y, z) 0 +#endif + class ScintillaGTKAccessible { private: GtkAccessible *accessible; @@ -72,7 +76,9 @@ private: gchar *GetTextAfterOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar); gchar *GetTextBeforeOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar); gchar *GetTextAtOffset(int charOffset, AtkTextBoundary boundaryType, int *startChar, int *endChar); +#if ATK_CHECK_VERSION(2, 10, 0) gchar *GetStringAtOffset(int charOffset, AtkTextGranularity granularity, int *startChar, int *endChar); +#endif gunichar GetCharacterAtOffset(int charOffset); gint GetCharacterCount(); gint GetCaretOffset(); @@ -124,7 +130,9 @@ public: static gchar *GetTextAfterOffset(AtkText *text, int offset, AtkTextBoundary boundary_type, int *start_offset, int *end_offset); static gchar *GetTextBeforeOffset(AtkText *text, int offset, AtkTextBoundary boundary_type, int *start_offset, int *end_offset); static gchar *GetTextAtOffset(AtkText *text, gint offset, AtkTextBoundary boundary_type, gint *start_offset, gint *end_offset); +#if ATK_CHECK_VERSION(2, 10, 0) static gchar *GetStringAtOffset(AtkText *text, gint offset, AtkTextGranularity granularity, gint *start_offset, gint *end_offset); +#endif static gunichar GetCharacterAtOffset(AtkText *text, gint offset); static gint GetCharacterCount(AtkText *text); static gint GetCaretOffset(AtkText *text); |
