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
@ -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…
Reference in New Issue
Block a user