[Summary] Fixed misdesign. Now signal_clicked of a toggleable Waves_button will bring new state of the button.

This commit is contained in:
VKamyshniy 2014-12-01 20:33:32 +02:00
parent 9617b25e4c
commit 2d2a8fb72d

View file

@ -352,10 +352,10 @@ WavesButton::on_button_release_event (GdkEventButton *)
_pushed = false;
queue_draw ();
if (_hovering) {
signal_clicked (this);
if (_toggleable) {
set_active_state (active_state () == Gtkmm2ext::ExplicitActive ? Gtkmm2ext::Off : Gtkmm2ext::ExplicitActive);
}
signal_clicked (this);
if (_act_on_release) {
if (_action) {