mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 22:26:29 +01:00
[Summary] For some unexplainable reason, in editor window all drop downs start with emitting signal_show with no following signal_hide. This required a trick to set_active(tru/false) more correct way.
This commit is contained in:
parent
df46a583ec
commit
c3b18752e9
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,6 @@ WavesDropdown::WavesDropdown (const std::string& title)
|
|||
{
|
||||
signal_button_press_event().connect (sigc::mem_fun(*this, &WavesDropdown::on_mouse_pressed));
|
||||
_menu.signal_hide ().connect (sigc::bind (sigc::mem_fun (*this, &CairoWidget::set_active), false));
|
||||
_menu.signal_show ().connect (sigc::bind (sigc::mem_fun (*this, &CairoWidget::set_active), true));
|
||||
}
|
||||
|
||||
WavesDropdown::~WavesDropdown ()
|
||||
|
|
@ -35,6 +34,7 @@ bool
|
|||
WavesDropdown::on_mouse_pressed (GdkEventButton*)
|
||||
{
|
||||
_menu.popup (sigc::mem_fun(this, &WavesDropdown::_on_popup_menu_position), 1, gtk_get_current_event_time());
|
||||
set_active (true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue