Fix shortcut button bug - wasn't calling callback when changed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
a1944b77ab
commit
85a8a15560
1
CHANGES
1
CHANGES
@ -24,6 +24,7 @@ CHANGES IN FLTK 1.1.0b5
|
||||
show the corresponding symbol (the label string was
|
||||
not quoted...)
|
||||
- FLTK should now compile with Cygwin cleanly.
|
||||
- Shortcut changes were not being saved by FLUID.
|
||||
|
||||
|
||||
CHANGES IN FLTK 1.1.0b4
|
||||
|
@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Menu_Type.cxx,v 1.16.2.12.2.1 2001/09/29 03:36:27 easysw Exp $"
|
||||
// "$Id: Fl_Menu_Type.cxx,v 1.16.2.12.2.2 2001/10/30 17:40:02 easysw Exp $"
|
||||
//
|
||||
// Menu item code for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@ -429,7 +429,7 @@ int Shortcut_Button::handle(int e) {
|
||||
v = Fl::event_state()&(FL_META|FL_ALT|FL_CTRL|FL_SHIFT) | Fl::event_key();
|
||||
if (v == FL_BackSpace && svalue) v = 0;
|
||||
}
|
||||
if (v != svalue) {svalue = v; set_changed(); redraw();}
|
||||
if (v != svalue) {svalue = v; set_changed(); redraw(); do_callback(); }
|
||||
return 1;
|
||||
} else if (e == FL_UNFOCUS) {
|
||||
int c = changed(); value(0); if (c) set_changed();
|
||||
@ -460,5 +460,5 @@ void shortcut_in_cb(Shortcut_Button* i, void* v) {
|
||||
}
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Menu_Type.cxx,v 1.16.2.12.2.1 2001/09/29 03:36:27 easysw Exp $".
|
||||
// End of "$Id: Fl_Menu_Type.cxx,v 1.16.2.12.2.2 2001/10/30 17:40:02 easysw Exp $".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user