mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 10:50:08 +00:00
gtkwidget: Queue a resize on the parent when unparenting
gtk_widget_set_parent (via gtk_widget_reposition_after) will queue a resize on the parent widget automatically when adding a child widget, so unparent should do the same
This commit is contained in:
parent
7e1373a08c
commit
fe429f8806
@ -4021,6 +4021,9 @@ gtk_widget_unparent (GtkWidget *widget)
|
||||
priv->clip.width,
|
||||
priv->clip.height);
|
||||
|
||||
if (priv->visible && _gtk_widget_get_visible (priv->parent))
|
||||
gtk_widget_queue_resize (priv->parent);
|
||||
|
||||
/* Reset the width and height here, to force reallocation if we
|
||||
* get added back to a new parent. This won't work if our new
|
||||
* allocation is smaller than 1x1 and we actually want a size of 1x1...
|
||||
|
Loading…
Reference in New Issue
Block a user