13
0

Make in/out buttons behave more like Gtk::MenuToolButton

Make them popup their menu as if attached rather than as a context menu.
This commit is contained in:
Julien "_FrnchFrgg_" RIVAUD 2016-08-18 10:42:43 +02:00
parent 9095d60f96
commit 3ab6ff8be7

View File

@ -918,7 +918,9 @@ MixerStrip::output_press (GdkEventButton *ev)
citems.push_back (SeparatorElem());
citems.push_back (MenuElem (_("Routing Grid"), sigc::mem_fun (*(static_cast<RouteUI*>(this)), &RouteUI::edit_output_configuration)));
output_menu.popup (1, ev->time);
Gtkmm2ext::anchored_menu_popup(&output_menu, &output_button, "",
1, ev->time);
break;
}
@ -1020,7 +1022,8 @@ MixerStrip::input_press (GdkEventButton *ev)
citems.push_back (SeparatorElem());
citems.push_back (MenuElem (_("Routing Grid"), sigc::mem_fun (*(static_cast<RouteUI*>(this)), &RouteUI::edit_input_configuration)));
input_menu.popup (1, ev->time);
Gtkmm2ext::anchored_menu_popup(&input_menu, &input_button, "",
1, ev->time);
break;
}