summaryrefslogtreecommitdiff
path: root/src/Fl_Valuator.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-01-05 13:51:30 +0100
committerGitHub <noreply@github.com>2023-01-05 13:51:30 +0100
commit8826dca1066361b474139bcc5aeed2e3a5246ed0 (patch)
tree6819629ff3f9f014269c7cee090ab20a824af6ad /src/Fl_Valuator.cxx
parent4d1a508c7e4d28fd53129da79f068a275d7160bd (diff)
Add close buttons for individual tabs in Fl_Tabs (#628)
Add close buttons for Fl_Tabs Introducing callback reasons FLUID shows all FL_WHEN_... options Adding Fl_Tabs overflow types Improved test/tabs to show new features
Diffstat (limited to 'src/Fl_Valuator.cxx')
-rw-r--r--src/Fl_Valuator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Valuator.cxx b/src/Fl_Valuator.cxx
index e7bcd2c8b..38383551e 100644
--- a/src/Fl_Valuator.cxx
+++ b/src/Fl_Valuator.cxx
@@ -101,7 +101,7 @@ void Fl_Valuator::handle_drag(double v) {
value_ = v;
value_damage();
set_changed();
- if (when() & FL_WHEN_CHANGED) do_callback();
+ if (when() & FL_WHEN_CHANGED) do_callback(FL_REASON_CHANGED);
}
}
/** Called after an FL_WHEN_RELEASE event is received and before the callback. */
@@ -113,7 +113,7 @@ void Fl_Valuator::handle_release() {
clear_changed();
// now do the callback only if slider in new position or always is on:
if (value_ != previous_value_ || when() & FL_WHEN_NOT_CHANGED) {
- do_callback();
+ do_callback(FL_REASON_RELEASED);
}
}
}