double x,
double y,
ARDOUR::InstrumentInfo& info,
- ARDOUR::MidiModel::PatchChangePtr patch)
+ ARDOUR::MidiModel::PatchChangePtr patch,
+ ArdourCanvas::Color outline_color,
+ ArdourCanvas::Color fill_color)
: _region (region)
, _info (info)
, _patch (patch)
_flag = new ArdourCanvas::Flag (
parent,
height,
- UIConfiguration::instance().color ("midi patch change outline"),
- UIConfiguration::instance().color_mod ("midi patch change fill", "midi patch change fill"),
+ outline_color,
+ fill_color,
ArdourCanvas::Duple (x, y),
true);
boost::shared_ptr<ChannelNameSet> channel_name_set = _info.get_patches (_patch->channel());
- if (!channel_name_set) {
+ if (!channel_name_set || channel_name_set->patch_banks().size () == 0) {
return;
}
}
}
- if (ev->button.button == 3) {
+ if (Gtkmm2ext::Keyboard::is_context_menu_event (&ev->button)) {
if (!_popup_initialized) {
initialize_popup_menus();
_popup_initialized = true;