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.