diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-24 12:53:41 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-10-24 12:53:41 +0000 |
| commit | 9e0efc1e888217d07cd1ac07e27f0f3d1ac1e52a (patch) | |
| tree | 4a31227368e8936afc2a03269954ee8dc654ffb7 /src/Fl_Slider.cxx | |
| parent | e001b30f18c6a46318d28d6a2446ab9e46a1455b (diff) | |
First fixes for 1.1.2 - Fl_Scrollbar shouldn't take keyboard focus,
move Fl_Slider focus stuff to main handle() method, use Fl_Light_Button
in scroll demo.
Bump version numbers to 1.1.2.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Slider.cxx')
| -rw-r--r-- | src/Fl_Slider.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Slider.cxx b/src/Fl_Slider.cxx index 561e4444c..8a9b25684 100644 --- a/src/Fl_Slider.cxx +++ b/src/Fl_Slider.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Slider.cxx,v 1.8.2.10.2.10 2002/08/13 15:42:44 easysw Exp $" +// "$Id: Fl_Slider.cxx,v 1.8.2.10.2.11 2002/10/24 12:53:41 easysw Exp $" // // Slider widget for the Fast Light Tool Kit (FLTK). // @@ -171,7 +171,6 @@ int Fl_Slider::handle(int event, int X, int Y, int W, int H) { switch (event) { case FL_PUSH: if (!Fl::event_inside(X, Y, W, H)) return 0; - if (Fl::visible_focus()) Fl::focus(this); handle_push(); case FL_DRAG: { @@ -277,6 +276,8 @@ int Fl_Slider::handle(int event, int X, int Y, int W, int H) { } int Fl_Slider::handle(int event) { + if (event == FL_PUSH && Fl::visible_focus()) Fl::focus(this); + return handle(event, x()+Fl::box_dx(box()), y()+Fl::box_dy(box()), @@ -285,5 +286,5 @@ int Fl_Slider::handle(int event) { } // -// End of "$Id: Fl_Slider.cxx,v 1.8.2.10.2.10 2002/08/13 15:42:44 easysw Exp $". +// End of "$Id: Fl_Slider.cxx,v 1.8.2.10.2.11 2002/10/24 12:53:41 easysw Exp $". // |
