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:
Paul Davis 2021-09-23 11:48:08 -06:00
parent d07436b15d
commit 368e98336f

View File

@ -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) {