Gtk inspector doesn't reflect reparenting changes.
Submitted by Leo Ufimtsev
Link to original bug (#743889)
Description
Created attachment 295979 gtk reparent a button
With gtk 3.14 inspector.
If you have code that reparents widgets, then gtk inspector's widget hierarchy doesn't change.
I.e, one expects the widget hierarchy to change and reflect the new hierarchy after a re-parent, but this doesn't happen, the hierarchy stays the same.
Please run the attached code. Launch Gtk-inspector (CTRL+SHIFT+D).
inspect the 'dynamic button'.
Click on the tabs. Switching tabs triggers re-parenting of the 'dynamic button'. The button is always displayed on the active tab.
You may notice that the 'parent' reference changes, but the gtk inspector hierarchy stays the same.
This makes debugging code that re-parents (e.g panels in an IDE that float around) much more difficult. It would be nice to have this fixed.
Thank you
Attachment 295979, "gtk reparent a button":
gtk_reparenting_button.c
Version: 3.22.x