Fix #3203 and restore the hover color for the 'Enabled' buttons

This commit is contained in:
Hombre
2016-03-12 00:09:30 +01:00
parent e6839f44c0
commit 7f0a96e448
22 changed files with 56 additions and 50 deletions

View File

@@ -619,6 +619,7 @@ MyExpander::MyExpander(bool useEnabled, Glib::ustring titleLabel) :
if (useEnabled) {
statusImage = Gtk::manage(new Gtk::Image(disabledPBuf));
imageEvBox = Gtk::manage(new Gtk::EventBox());
imageEvBox->set_name("MyExpanderStatus");
imageEvBox->add(*statusImage);
imageEvBox->set_above_child(true);
imageEvBox->signal_button_release_event().connect( sigc::mem_fun(this, & MyExpander::on_enabled_change) );
@@ -645,6 +646,7 @@ MyExpander::MyExpander(bool useEnabled, Glib::ustring titleLabel) :
titleEvBox = Gtk::manage(new Gtk::EventBox());
titleEvBox->set_name("MyExpanderTitle");
titleEvBox->set_border_width(2);
titleEvBox->add(*headerHBox);
titleEvBox->set_above_child(false); // this is the key! By make it below the child, they will get the events first.
titleEvBox->set_can_focus(false);