Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Port to Gtk4#200

Merged
danirabbit merged 20 commits intomasterfrom
gtk4
Jul 29, 2024
Merged

Port to Gtk4#200
danirabbit merged 20 commits intomasterfrom
gtk4

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented Dec 7, 2021

Fixes #205

@davidmhewitt

This comment was marked as outdated.

@danirabbit

This comment was marked as outdated.

@danirabbit danirabbit changed the title Try to port to GTK4 Port to Gtk4 Jun 3, 2022
@lenemter lenemter linked an issue Nov 2, 2022 that may be closed by this pull request
@treppenwitz03

This comment has been minimized.

@danirabbit danirabbit mentioned this pull request Jun 29, 2024
@danirabbit

This comment was marked as resolved.

@ryonakano
Copy link
Member

Does setting GST_PLUGIN_PATH_1_0 to the directory where libgstgtk4.so is installed in the finish-args section works here? I don't have PCs with cameras so I can't test if it works though.

user@VirtualBox-17958d80:~/work/camera$ git diff
diff --git a/io.elementary.camera.yml b/io.elementary.camera.yml
index 29bdac1..b0ec129 100644
--- a/io.elementary.camera.yml
+++ b/io.elementary.camera.yml
@@ -19,6 +19,7 @@ finish-args:
   - '--socket=pulseaudio'
   - '--device=dri'
   - '--device=all'
+  - '--env=GST_PLUGIN_PATH_1_0=/app/lib64/gstreamer-1.0'
 
   - '--metadata=X-DConf=migrate-path=/io/elementary/camera/'
 cleanup:
user@VirtualBox-17958d80:~/work/camera$ 

@danirabbit
Copy link
Member Author

@ryonakano that does work thank you!!

@danirabbit danirabbit marked this pull request as ready for review July 12, 2024 16:25
@danirabbit danirabbit requested a review from a team July 12, 2024 16:25
@danirabbit danirabbit mentioned this pull request Jul 12, 2024
1 task
@danirabbit
Copy link
Member Author

@ryonakano could I get a rereview? :)

Copy link
Member

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested this yet, but leaving some comments.

Also, we need to update the README according with the meson.build and plus explicit that we now requires gst-plugins-rs as a runtime dependency.

danirabbit and others added 2 commits July 26, 2024 08:27
@zeebok
Copy link

zeebok commented Jul 26, 2024

Don't forget to update the readme!

@zeebok
Copy link

zeebok commented Jul 26, 2024

I just tested and it does work. The frame rate is a little better even! Not sure if that's due to whatever was causing error log spam being fixed but it is usable now!

Copy link
Member

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed that it can take photos and videos with my iSight camera.

Leaving another few tiny comments, otherwise looks good!

@ryonakano
Copy link
Member

@danirabbit Sorry, please ignore my previous suggestions. Just modifying dependencies list in README.md is fine for me.

@danirabbit
Copy link
Member Author

@ryonakano I guess switching README to use Flatpak builder is the best thing to do here? #277

@ryonakano
Copy link
Member

@danirabbit Then this PR looks good to me!

@danirabbit danirabbit enabled auto-merge (squash) July 29, 2024 22:04
@danirabbit danirabbit merged commit d28aef5 into master Jul 29, 2024
@danirabbit danirabbit deleted the gtk4 branch July 29, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

RFE: update for granite-7 API Replace Gtk.Menu with Gtk.Popover

5 participants