fixes for latest gtk4, workaround dark theme issue, fix old gtk api calls with new working ones

2 jobs for gtk4 in 38 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
failed #1090671
flatpak
flatpak

00:00:27

failed #1090670
test

00:00:38

 
Name Stage Failure
failed
test Test
  Downloading pyflakes-2.2.0-py2.py3-none-any.whl (66 kB)
Installing collected packages: pyflakes
Successfully installed pyflakes-2.2.0
$ pyflakes whatip
whatip/test_connection.py:3:1 'gi.repository.Gtk' imported but unused
whatip/headerbar.py:1:1 'gettext.gettext as _' imported but unused
whatip/network_interface_listbox_row.py:1:1 'gi.repository.Gdk' imported but unused
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
flatpak Test
Uploading artifacts for failed job
Uploading artifacts...
WARNING: whatip.flatpak: no matching files
WARNING: repo.tar: no matching files
WARNING: .flatpak-builder/build/whatip/_flatpak_build/meson-logs/meson-log.txt: no matching files
WARNING: .flatpak-builder/build/whatip/_flatpak_build/meson-logs/testlog.txt: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1