diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-07-10 23:16:13 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-07-10 23:16:13 +0000 |
| commit | 38e5cf7db0dc1aa24b4816dcf226d21b50078f16 (patch) | |
| tree | 3ad04f2e13e0364e2df1c530400fe6a6ab8a3ffc /FL | |
| parent | 52cd3040d1b22d375e9770ecc04c4262e69f136b (diff) | |
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
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Repeat_Button.H | 8 |
1 files 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 $". // |
