widget: Shortcut widget not repositioning

If a widget doesn't move positions during gtk_widget_reposition(),
detect it early.

This is especially beneficial in the inspector.
This commit is contained in:
Benjamin Otte
2023-03-31 17:34:15 +02:00
parent cf2c955b12
commit 6f4175345f

View File

@@ -5951,6 +5951,9 @@ gtk_widget_reposition_after (GtkWidget *widget,
prev_parent = priv->parent;
prev_previous = priv->prev_sibling;
if (priv->parent == parent && previous_sibling == prev_previous)
return;
if (priv->parent != NULL && priv->parent != parent)
{
g_warning ("Can't set new parent %s %p on widget %s %p, "