[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:
VKamyshniy 2014-09-12 14:40:13 +03:00
parent df46a583ec
commit c3b18752e9

View file

@ -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;
}