mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
gtkmm2ext: if a CairoWidget is used in the canvas, we do not need to realize the Gtk::EventBox
This may be a breaking change, but seems ok from superficial testing.
This commit is contained in:
parent
d07436b15d
commit
368e98336f
1 changed files with 4 additions and 0 deletions
|
|
@ -360,6 +360,10 @@ CairoWidget::on_style_changed (const Glib::RefPtr<Gtk::Style>&)
|
|||
void
|
||||
CairoWidget::on_realize ()
|
||||
{
|
||||
if (_canvas_widget) {
|
||||
/* do not need a realized event box */
|
||||
return;
|
||||
}
|
||||
Gtk::EventBox::on_realize();
|
||||
#ifdef __APPLE__
|
||||
if (_nsglview) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue