diff options
Diffstat (limited to 'views/widget')
-rw-r--r-- | views/widget/widget_gtk.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index ee380d3..f1cb67d 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -370,6 +370,10 @@ void WidgetGtk::CreateGtkWidget() { SetViewForNative(child_widget_parent_, this); } + + // The widget needs to be realized before handlers like size-allocate can + // function properly. + gtk_widget_realize(widget_); } void WidgetGtk::OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation) { |