FL/menu_popup: Call menu's callback if menu item lacks one.
This commit is contained in:
parent
2eadaa016e
commit
a1387c4d62
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue