Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windowPreview: Use set_child instead of add_child
While it's safe to use either in GNOME 46, it is not always safe to use (clutter_actor_)add_child directly in GNOME 45. Because the notification StBin requires to update its internal state wasn't added until gnome-shell@ed3b8d093e introduced in 46.alpha. At least (st_bin_)set_child remains the same in all GNOME versions, and is what the old (clutter_container_)add_actor used to call in GNOME 45. There may be other places where we need to change add_child to set_child for backward compatibility with StBin, but if they exist then they're not causing problems yet. Closes: https://bugs.launchpad.net/bugs/2056506 Fixes: 4945dbf
- Loading branch information