ui: Explicitly register custom widget types before use
A change in the linker between Fedora 37 and 38 means that the
_get_type()
functions for custom widgets are not exported by default.
That’s probably a good thing for symbol hygiene, but it also means that
the GTK .ui
file loader can no longer load them automatically, which
means that it can’t instantiate any of gnome-software’s custom widgets.
Fix that by explicitly registering the custom widget types before any of
them are first used in a .ui
file.
The locations where custom widgets are used was found using the following command; the subsequent edits were made manually:
git grep '"Gs' *.ui | grep -v "<template" | grep '"Gs'
Signed-off-by: Philip Withnall pwithnall@endlessos.org
Fixes: #2157 (closed)
Closes #2157 (closed)