diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-15 21:58:26 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-15 21:58:26 +0200 |
| commit | 238c3b7ceff7b1bb6e568ff93b593e8c08ff9ecd (patch) | |
| tree | ec6ede0a9196a4133c06839e8f1ad5f416b1f7dc /FL/Fl_File_Input.H | |
| parent | 88c2994e20be93122bbd316d65711321f97ea2ba (diff) | |
| parent | 5df7a7678a4641cc9234ac8ea0d54623628d922a (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'FL/Fl_File_Input.H')
| -rw-r--r-- | FL/Fl_File_Input.H | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/FL/Fl_File_Input.H b/FL/Fl_File_Input.H index 6c8ee578b..859652284 100644 --- a/FL/Fl_File_Input.H +++ b/FL/Fl_File_Input.H @@ -46,7 +46,6 @@ */ class FL_EXPORT Fl_File_Input : public Fl_Input { - Fl_Color errorcolor_; char ok_entry_; uchar down_box_; short buttons_[200]; @@ -73,11 +72,24 @@ public: /** Gets the current error color. - \todo Better docs for Fl_File_Input::errorcolor() - is it even used? + + Returns \p FL_RED since FLTK 1.4.0 (default in 1.3.x). + Retained for backwards compatibility. + + \deprecated Will be removed in FLTK 1.4.2 or higher. + \todo Remove Fl_File_Input::errorcolor() in FLTK 1.4.2 or higher. */ - Fl_Color errorcolor() const { return errorcolor_; } - /** Sets the current error color to \p c */ - void errorcolor(Fl_Color c) { errorcolor_ = c; } + Fl_Color errorcolor() const { return FL_RED; } + + /** + Sets the current error color to \p c. + + Does nothing since FLTK 1.4.0. Retained for backwards compatibility. + + \deprecated Will be removed in FLTK 1.4.2 or higher. + \todo Remove Fl_File_Input::errorcolor(Fl_Color) in FLTK 1.4.2 or higher. + */ + void errorcolor(Fl_Color c) {} int value(const char *str); int value(const char *str, int len); |
