gtkwindow: fix a critical warning

Do not map the title box if it's not visible.
This commit is contained in:
Claudio Saavedra 2013-08-28 20:10:38 +03:00
parent 13f92834f7
commit 343a259e4a

View File

@ -5471,7 +5471,7 @@ gtk_window_map (GtkWidget *widget)
if (child != NULL && gtk_widget_get_visible (child))
gtk_widget_map (child);
if (priv->title_box != NULL)
if (priv->title_box != NULL && gtk_widget_get_visible (priv->title_box))
gtk_widget_map (priv->title_box);
gdk_window = gtk_widget_get_window (widget);