Fix round-corner backround of insensitive ArdourWidgets

ArdourButton draws a custom insensitive background, using
the color "gtk_background". This can conflict with gtk's
insensitive background color when using round-corners.
This commit is contained in:
Robin Gareus 2021-02-14 22:53:18 +01:00
parent acae86781b
commit d05572e14a
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 3 additions and 3 deletions

View file

@ -297,7 +297,7 @@ CairoWidget::get_parent_bg ()
_current_parent = parent;
_parent_style_change = parent->signal_style_changed().connect (mem_fun (*this, &CairoWidget::on_style_changed));
}
return style->get_bg (get_state());
return style->get_bg (Gtk::STATE_NORMAL);
}
if (!parent->get_has_window()) {
@ -313,7 +313,7 @@ CairoWidget::get_parent_bg ()
_current_parent = parent;
_parent_style_change = parent->signal_style_changed().connect (mem_fun (*this, &CairoWidget::on_style_changed));
}
return parent->get_style ()->get_bg (parent->get_state());
return parent->get_style ()->get_bg (Gtk::STATE_NORMAL);
}
return get_style ()->get_bg (get_state());