diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-01-13 22:36:28 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-01-13 22:36:35 +0100 |
| commit | 826eb39d687ae499119c0ed1b7b0e4d60c314e62 (patch) | |
| tree | e27fbe2320521e9d34966e8e860384b7e68c448b /fluid | |
| parent | a6e5b5b35bd3c0c11dda4829d49c4fad9d37bc61 (diff) | |
#877: Fixes shortcut callbacks for Fl_Button
- this commit does rewrite some of the logic,
hoping to make thing more, um, logical. The bits
react mostly the same and hopefully as expected.
Everything is documented in the Fl_Button ctor.
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index f11c7f968..7b4e79ec9 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -3228,8 +3228,6 @@ void Fl_Widget_Type::write_widget_code(Fd_Code_Writer& f) { f.write_c("));\n"); } Fl_When ww = o->when(); - if (ww==FL_WHEN_NOT_CHANGED) - ww = FL_WHEN_NEVER; if (ww != tplate->when() || subclass()) f.write_c("%s%s->when(%s);\n", f.indent(), var, when_symbol_name(ww)); if (!o->visible() && o->parent()) |
