widget: Do proper clean up in real_hide()

Do the same things set_visible_flag() does.
This commit is contained in:
Benjamin Otte 2019-05-29 15:02:49 +02:00
parent 170c25a9d2
commit 2380f9673b

View File

@ -3239,6 +3239,15 @@ gtk_widget_real_hide (GtkWidget *widget)
if (_gtk_widget_get_mapped (widget))
gtk_widget_unmap (widget);
g_clear_pointer (&priv->allocated_transform, gsk_transform_unref);
priv->allocated_width = 0;
priv->allocated_height = 0;
priv->allocated_size_baseline = 0;
g_clear_pointer (&priv->transform, gsk_transform_unref);
priv->width = 0;
priv->height = 0;
gtk_widget_update_paintables (widget);
}
static void