diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-29 23:36:09 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-03-29 23:36:19 +0100 |
| commit | 5dd1062df53c747339b875c8cb0c13df576ad4b8 (patch) | |
| tree | 9c618866ea1159cf53ed6bdadeda48b4efff808f /src/Fl_Menu_Bar.cxx | |
| parent | b7189192e2e31ce5ca1f2eaac2a303f9b8216ded (diff) | |
Adding `FL_BEFORE_MENU` event to classes derived from `Fl_Menu_`
Diffstat (limited to 'src/Fl_Menu_Bar.cxx')
| -rw-r--r-- | src/Fl_Menu_Bar.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Menu_Bar.cxx b/src/Fl_Menu_Bar.cxx index b26131b01..3a7530bee 100644 --- a/src/Fl_Menu_Bar.cxx +++ b/src/Fl_Menu_Bar.cxx @@ -49,6 +49,7 @@ int Fl_Menu_Bar::handle(int event) { case FL_PUSH: v = 0; J1: + handle(FL_BEFORE_MENU); v = menu()->pulldown(x(), y(), w(), h(), v, this, 0, 1); picked(v); return 1; @@ -71,6 +72,7 @@ Fl_Menu_Bar::Fl_Menu_Bar(int X, int Y, int W, int H,const char *l) void Fl_Menu_Bar::play_menu(const Fl_Menu_Item *v) { if (v) { + handle(FL_BEFORE_MENU); v = menu()->pulldown(x(), y(), w(), h(), v, this, 0, 1); picked(v); } |
