Browse Source

FL/menu_popup: Call menu's callback if menu item lacks one.

tags/non-daw-v1.1.0
Jonathan Moore Liles 14 years ago
parent
commit
a1387c4d62
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      FL/menu_popup.C

+ 3
- 0
FL/menu_popup.C View File

@@ -32,6 +32,9 @@ menu_popup ( Fl_Menu_ *m, int X, int Y )
m->value( r );
if ( r->callback() )
r->do_callback( static_cast<Fl_Widget*>(m) );
else if ( m->callback() )
m->do_callback( static_cast<Fl_Widget*>(m), m->user_data() );

return true;
}



Loading…
Cancel
Save