From 9e0efc1e888217d07cd1ac07e27f0f3d1ac1e52a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 24 Oct 2002 12:53:41 +0000 Subject: 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 --- src/Fl_Slider.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Fl_Slider.cxx') 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 $". // -- cgit v1.2.3