mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
mixer: ui: consistent interaction with foldback bus number label (context menu on press instead of release)
This commit is contained in:
parent
33a9664748
commit
ef160dd24e
1 changed files with 6 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ FoldbackStrip::init ()
|
||||||
_global_frame.set_name ("MixerStripFrame");
|
_global_frame.set_name ("MixerStripFrame");
|
||||||
add (_global_frame);
|
add (_global_frame);
|
||||||
|
|
||||||
_number_label.signal_button_release_event().connect (sigc::mem_fun (*this, &FoldbackStrip::number_button_press), false);
|
_number_label.signal_button_press_event().connect (sigc::mem_fun (*this, &FoldbackStrip::number_button_press), false);
|
||||||
_name_button.signal_button_press_event ().connect (sigc::mem_fun (*this, &FoldbackStrip::name_button_button_press), false);
|
_name_button.signal_button_press_event ().connect (sigc::mem_fun (*this, &FoldbackStrip::name_button_button_press), false);
|
||||||
_previous_button.signal_clicked.connect (sigc::bind (sigc::mem_fun (*this, &FoldbackStrip::cycle_foldbacks), false));
|
_previous_button.signal_clicked.connect (sigc::bind (sigc::mem_fun (*this, &FoldbackStrip::cycle_foldbacks), false));
|
||||||
_next_button.signal_clicked.connect (sigc::bind (sigc::mem_fun (*this, &FoldbackStrip::cycle_foldbacks), true));
|
_next_button.signal_clicked.connect (sigc::bind (sigc::mem_fun (*this, &FoldbackStrip::cycle_foldbacks), true));
|
||||||
|
|
@ -875,6 +875,11 @@ FoldbackStrip::name_button_button_press (GdkEventButton* ev)
|
||||||
bool
|
bool
|
||||||
FoldbackStrip::number_button_press (GdkEventButton* ev)
|
FoldbackStrip::number_button_press (GdkEventButton* ev)
|
||||||
{
|
{
|
||||||
|
if (ev->type == GDK_2BUTTON_PRESS) {
|
||||||
|
choose_color ();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (Keyboard::is_context_menu_event (ev)) {
|
if (Keyboard::is_context_menu_event (ev)) {
|
||||||
return name_button_button_press (ev);
|
return name_button_button_press (ev);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue