From 38e5cf7db0dc1aa24b4816dcf226d21b50078f16 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sat, 10 Jul 1999 23:16:13 +0000 Subject: [PATCH] Added inline deactivate() method that calls Fl::remove_timeout() for Fl_Repeat_Button. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Repeat_Button.H | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/FL/Fl_Repeat_Button.H b/FL/Fl_Repeat_Button.H index ccbc98b32..73a153e71 100644 --- a/FL/Fl_Repeat_Button.H +++ b/FL/Fl_Repeat_Button.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Repeat_Button.H,v 1.5 1999/02/16 21:59:42 mike Exp $" +// "$Id: Fl_Repeat_Button.H,v 1.5.2.1 1999/07/10 23:16:13 mike Exp $" // // Repeat button header file for the Fast Light Tool Kit (FLTK). // @@ -33,10 +33,14 @@ public: FL_EXPORT int handle(int); Fl_Repeat_Button(int x,int y,int w,int h,const char *l=0) : Fl_Button(x,y,w,h,l) {} + void deactivate() { + Fl::remove_timeout(repeat_callback,this); + Fl_Button::deactivate(); + } }; #endif // -// End of "$Id: Fl_Repeat_Button.H,v 1.5 1999/02/16 21:59:42 mike Exp $". +// End of "$Id: Fl_Repeat_Button.H,v 1.5.2.1 1999/07/10 23:16:13 mike Exp $". //