diff options
Diffstat (limited to 'src/c_fl_text_editor.cpp')
-rw-r--r-- | src/c_fl_text_editor.cpp | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/c_fl_text_editor.cpp b/src/c_fl_text_editor.cpp index 8c33afa..b7e3f3e 100644 --- a/src/c_fl_text_editor.cpp +++ b/src/c_fl_text_editor.cpp @@ -279,13 +279,23 @@ void fl_text_editor_set_insert_mode(TEXTEDITOR te, int i) { -//int fl_text_editor_get_tab_nav(TEXTEDITOR te) { -// return reinterpret_cast<Fl_Text_Editor*>(te)->tab_nav(); -//} - -//void fl_text_editor_set_tab_nav(TEXTEDITOR te, int t) { -// reinterpret_cast<Fl_Text_Editor*>(te)->tab_nav(t); -//} +int fl_text_editor_get_tab_nav(TEXTEDITOR te) { +#if FLTK_ABI_VERSION >= 10304 + return reinterpret_cast<Fl_Text_Editor*>(te)->tab_nav(); +#else + (void)(te); + return 0; +#endif +} + +void fl_text_editor_set_tab_nav(TEXTEDITOR te, int t) { +#if FLTK_ABI_VERSION >= 10304 + reinterpret_cast<Fl_Text_Editor*>(te)->tab_nav(t); +#else + (void)(te); + (void)(t); +#endif +} |