Skip to content

Commit

Permalink
STR #1330: Repeat button now cancels timeout if it should get deactiv…
Browse files Browse the repository at this point in the history
…ated during a callback

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Matthias Melcher committed Jun 21, 2006
1 parent 77a20db commit baa92d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES
@@ -1,5 +1,7 @@
CHANGES IN FLTK 1.1.8

- Repeat button now cancels timeout if it should get
deactivated during a callback (STR #1330)
- Added support for assigning Fl_Menu_Items to array
variables in Fluid (STR #1280)
- Added --with-archflags configure option to allow
Expand Down
2 changes: 2 additions & 0 deletions src/Fl_Repeat_Button.cxx
Expand Up @@ -49,6 +49,8 @@ int Fl_Repeat_Button::handle(int event) {
if (Fl::visible_focus()) Fl::focus(this);
newval = Fl::event_inside(this);
J1:
if (!active())
newval = 0;
if (value(newval)) {
if (newval) {
Fl::add_timeout(INITIALREPEAT,repeat_callback,this);
Expand Down

0 comments on commit baa92d1

Please sign in to comment.