[gnome-46] screencastwidget: Rework signal connections
Remove the inline struct declaration, and connect to signals manually. Also make sure to connect to AdwStyleManager signal using the safer g_signal_connect_object(), since AdwStyleManager can outlive the widget.
(cherry picked from commit 0da6c7ef)