camera icon indicating copy to clipboard operation
camera copied to clipboard

Port to Gtk4

Open danirabbit opened this issue 2 years ago • 3 comments

Fixes #205

Todo:

  • [x] Fix buttons with icons and labels
  • [ ] Verify we didn't break multiple cameras
  • [x] Double check error dialog behavior
  • [ ] No window with "Failed to register: Timeout was reached" on a computer with a webcam. Maybe something to do with Flatpak permissions?
  • [ ] Gstreamer widget is Gtk3, so we need to use a Gtk.Video. Example here: https://gitlab.gnome.org/matthiasc/video-play. Alternatively it looks like there might be a gtk4paintablesink?

danirabbit avatar Dec 07 '21 00:12 danirabbit

Those errors mean you can't subclass that thing as they're sealed classes. I don't think the necessary annotations are available for it to be a Vala error yet.

davidmhewitt avatar Dec 07 '21 00:12 davidmhewitt

Ah damn that sucks!

danirabbit avatar Dec 07 '21 00:12 danirabbit

Managed to make it work with 'gtk4paintablesink' but requires extra setup from installing https://gitlab.freedekstop.org/gstreamer/gst-plugins-rs/ and installing the gtk4 plugin. loading the plugin manually and feeding the paintable to a Gtk.Picture in lieu of Gtk.Widget in CameraView

treppenwitz03 avatar Jan 11 '23 04:01 treppenwitz03