Update to 45.1
This commit is contained in:
parent
58f33f726a
commit
019ab636d7
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/snapshot-45.0.tar.xz
|
||||
/snapshot-45.1.tar.xz
|
||||
|
||||
41
168.patch
41
168.patch
@ -1,41 +0,0 @@
|
||||
From 58f4e29679e25a031133bfc145ae7a3f034efd9c Mon Sep 17 00:00:00 2001
|
||||
From: Maximiliano Sandoval R <msandova@gnome.org>
|
||||
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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (snapshot-45.0.tar.xz) = a0cfc7bb45f6fd9b14ab9a4262ee614c3b57bb6e68d16fae0f9cb4ce02fd631316f9be28e86915b74480c1ef2b666ea4b10ea66be46f90ed9d28de77258a50bc
|
||||
SHA512 (snapshot-45.1.tar.xz) = faea39fdaced2e2518dbd2cf43b4d51ca52029d7b2d4159e0d28381c1c93433951c33e1d2605c531e29fb54d0a5fde7c2f89058881155236020ed077ede7afd3
|
||||
|
||||
Loading…
Reference in New Issue
Block a user