Skip to content

Commit

Permalink
Added inline deactivate() method that calls Fl::remove_timeout()
Browse files Browse the repository at this point in the history
for Fl_Repeat_Button.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Jul 10, 1999
1 parent 52cd304 commit 38e5cf7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 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).
//
Expand Down Expand Up @@ -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 $".
//

0 comments on commit 38e5cf7

Please sign in to comment.