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

This commit is contained in:
Jonathan Moore Liles 2010-01-27 22:39:03 -06:00
parent 2eadaa016e
commit a1387c4d62
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ menu_popup ( Fl_Menu_ *m, int X, int Y )
m->value( r ); m->value( r );
if ( r->callback() ) if ( r->callback() )
r->do_callback( static_cast<Fl_Widget*>(m) ); 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; return true;
} }