13
0

ui: mixer: vca: consistent interaction with number_label button (context menu on press instead of release, add missing color edit on double click)

This commit is contained in:
jean-emmanuel 2023-12-13 14:31:58 +01:00 committed by Robin Gareus
parent 2f29483ac2
commit 33a9664748
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -109,7 +109,7 @@ VCAMasterStrip::VCAMasterStrip (Session* s, std::shared_ptr<VCA> v)
number_label.set_alignment (.5, .5);
number_label.set_fallthrough_to_parent (true);
number_label.set_inactive_color (_vca->presentation_info().color ());
number_label.signal_button_release_event().connect (sigc::mem_fun (*this, &VCAMasterStrip::number_button_press), false);
number_label.signal_button_press_event().connect (sigc::mem_fun (*this, &VCAMasterStrip::number_button_press), false);
update_bottom_padding ();
@ -424,6 +424,11 @@ VCAMasterStrip::vertical_button_release (GdkEventButton* ev)
bool
VCAMasterStrip::number_button_press (GdkEventButton* ev)
{
if (ev->type == GDK_2BUTTON_PRESS) {
start_color_edit ();
return true;
}
if (Keyboard::is_context_menu_event (ev)) {
if (!context_menu) {
build_context_menu ();