gtk: Fix crash when calling GetSize() for hidden window.
This commit is contained in:
parent
c814803c94
commit
84307dd329
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ NativeWindowGtk::NativeWindowGtk(content::WebContents* web_contents,
|
||||||
gtk_widget_show_all(vbox_);
|
gtk_widget_show_all(vbox_);
|
||||||
gtk_widget_size_allocate(GTK_WIDGET(window_), &size);
|
gtk_widget_size_allocate(GTK_WIDGET(window_), &size);
|
||||||
|
|
||||||
|
// Create the underlying gdk window.
|
||||||
|
gtk_widget_realize(GTK_WIDGET(window_));
|
||||||
|
|
||||||
if (!icon_.IsEmpty())
|
if (!icon_.IsEmpty())
|
||||||
gtk_window_set_icon(window_, icon_.ToGdkPixbuf());
|
gtk_window_set_icon(window_, icon_.ToGdkPixbuf());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue