diff --git a/.gitignore b/.gitignore index ffe92c0..c1a774d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /snapshot-45.0.tar.xz +/snapshot-45.1.tar.xz diff --git a/168.patch b/168.patch deleted file mode 100644 index a61df29..0000000 --- a/168.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 58f4e29679e25a031133bfc145ae7a3f034efd9c Mon Sep 17 00:00:00 2001 -From: Maximiliano Sandoval R -Date: Thu, 5 Oct 2023 22:01:36 +0200 -Subject: [PATCH] window: Ask portal only once the window is mapped - -Otherwise the shell will reject the permission. ---- - src/widgets/window.rs | 11 ++++++++--- - 1 file changed, 8 insertions(+), 3 deletions(-) - -diff --git a/src/widgets/window.rs b/src/widgets/window.rs -index 8ec35fc3..397da532 100644 ---- a/src/widgets/window.rs -+++ b/src/widgets/window.rs -@@ -165,15 +165,20 @@ mod imp { - let enabled = navigation_view.visible_page().is_some_and(|page| &page == &*imp.camera_page); - obj.set_shutter_enabled(enabled); - })); -+ } -+ } - -+ impl WidgetImpl for Window { -+ fn map(&self) { -+ self.parent_map(); -+ let camera = self.camera.get(); - let ctx = glib::MainContext::default(); -- ctx.spawn_local(glib::clone!(@weak obj => async move { -- obj.imp().camera.start().await; -+ ctx.spawn_local(glib::clone!(@weak camera => async move { -+ camera.start().await; - })); - } - } - -- impl WidgetImpl for Window {} - impl WindowImpl for Window { - // Save window state on delete event - fn close_request(&self) -> glib::Propagation { --- -GitLab - diff --git a/snapshot.spec b/snapshot.spec index 3b753d9..8f069c8 100644 --- a/snapshot.spec +++ b/snapshot.spec @@ -9,7 +9,7 @@ %global tarball_version %%(echo %{version} | tr '~' '.') Name: snapshot -Version: 45.0 +Version: 45.1 Release: %autorelease Summary: Take pictures and videos @@ -34,9 +34,6 @@ Source: https://download.gnome.org/sources/snapshot/45/snapshot-%{tarbal # Downstream patch to disable linting as part of self tests Patch: 0001-Disable-cargo-clippy-test.patch -# https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/168 -Patch: 168.patch - # https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/175 Patch: 175.patch diff --git a/sources b/sources index 6375a8f..bcd51f2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (snapshot-45.0.tar.xz) = a0cfc7bb45f6fd9b14ab9a4262ee614c3b57bb6e68d16fae0f9cb4ce02fd631316f9be28e86915b74480c1ef2b666ea4b10ea66be46f90ed9d28de77258a50bc +SHA512 (snapshot-45.1.tar.xz) = faea39fdaced2e2518dbd2cf43b4d51ca52029d7b2d4159e0d28381c1c93433951c33e1d2605c531e29fb54d0a5fde7c2f89058881155236020ed077ede7afd3