Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 65bb56a65c |
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,4 +1,2 @@
|
||||
/papers-47.0-vendor.tar.xz
|
||||
/papers-47.0.tar.xz
|
||||
/papers-5de8d26c.tar.xz
|
||||
/papers-5de8d26c-vendor.tar.xz
|
||||
papers-5de8d26c-vendor.tar.xz
|
||||
papers-5de8d26c.tar.xz
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
||||
@ -1,30 +0,0 @@
|
||||
From 91e0945415c0c4d4c4690760e2b9f64d081639fa Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
|
||||
Date: Fri, 11 Apr 2025 00:15:21 +0200
|
||||
Subject: [PATCH 075/500] libdocument/pps-signature: Fix wrong object clear
|
||||
call on rect finalize
|
||||
|
||||
PpsRectangle is a boxed type whose free function is just g_free,
|
||||
not g_object_unref.
|
||||
|
||||
So fix a crash on signature cleanup
|
||||
---
|
||||
libdocument/pps-signature.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libdocument/pps-signature.c b/libdocument/pps-signature.c
|
||||
index 8b1be9fe4..26e620ed6 100644
|
||||
--- a/libdocument/pps-signature.c
|
||||
+++ b/libdocument/pps-signature.c
|
||||
@@ -71,7 +71,7 @@ pps_signature_finalize (GObject *object)
|
||||
g_clear_pointer (&priv->password, g_free);
|
||||
g_clear_pointer (&priv->signature, g_free);
|
||||
g_clear_pointer (&priv->signature_left, g_free);
|
||||
- g_clear_object (&priv->rect);
|
||||
+ g_clear_pointer (&priv->rect, g_free);
|
||||
g_clear_pointer (&priv->document_owner_password, g_free);
|
||||
g_clear_pointer (&priv->document_user_password, g_free);
|
||||
g_clear_pointer (&priv->signature_time, g_date_time_unref);
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@ -1,31 +0,0 @@
|
||||
From e3bb3547c6674ae354c062198ccf0f440f48e6ef Mon Sep 17 00:00:00 2001
|
||||
From: Marek Kasik <mkasik@redhat.com>
|
||||
Date: Fri, 30 May 2025 16:01:30 +0200
|
||||
Subject: [PATCH] shell: Launch target file
|
||||
|
||||
Launch target file instead of openning the same file again when
|
||||
launch action is triggered.
|
||||
---
|
||||
shell/src/document_view/signals.rs | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/shell/src/document_view/signals.rs b/shell/src/document_view/signals.rs
|
||||
index 8f184f5e4..0e4d1219d 100644
|
||||
--- a/shell/src/document_view/signals.rs
|
||||
+++ b/shell/src/document_view/signals.rs
|
||||
@@ -260,7 +260,11 @@ impl imp::PpsDocumentView {
|
||||
// does, simply ignore it
|
||||
let file = self.file().unwrap();
|
||||
if file.uri() != uri {
|
||||
- application::spawn(Some(&file), action.dest().as_ref(), Some(self.mode.get()));
|
||||
+ application::spawn(
|
||||
+ Some(&gio::File::for_uri(&uri)),
|
||||
+ action.dest().as_ref(),
|
||||
+ Some(self.mode.get()),
|
||||
+ );
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@ -1,44 +0,0 @@
|
||||
From fb19401c6024d53929021bd1ad54bd1c0dd850ab Mon Sep 17 00:00:00 2001
|
||||
From: Marek Kasik <mkasik@redhat.com>
|
||||
Date: Thu, 9 Oct 2025 12:19:36 +0200
|
||||
Subject: [PATCH] shell: Fix signing when the rectangle is too small
|
||||
|
||||
Allow user to use the small rectangle for signature instead
|
||||
of starting over.
|
||||
---
|
||||
shell/src/document_view/signals.rs | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/shell/src/document_view/signals.rs b/shell/src/document_view/signals.rs
|
||||
index 2f3cc6601..f9b5b686d 100644
|
||||
--- a/shell/src/document_view/signals.rs
|
||||
+++ b/shell/src/document_view/signals.rs
|
||||
@@ -775,7 +775,7 @@ impl imp::PpsDocumentView {
|
||||
#[template_callback]
|
||||
fn signature_rect_too_small(&self, response: &str) {
|
||||
if response == "sign" {
|
||||
- self.create_certificate_selection();
|
||||
+ self.certificate_save_as_dialog();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -837,6 +837,7 @@ impl imp::PpsDocumentView {
|
||||
|
||||
self.signature_page.set(page);
|
||||
self.signature_bounding_box.replace(Some(*rect));
|
||||
+ signature.set_rect(rect);
|
||||
|
||||
// Calculate font size for main (right) signature text
|
||||
let Some(font_size) = Self::calculate_font_size(
|
||||
@@ -862,8 +863,6 @@ impl imp::PpsDocumentView {
|
||||
|
||||
signature.set_left_font_size(font_size as i32);
|
||||
|
||||
- signature.set_rect(rect);
|
||||
-
|
||||
self.certificate_save_as_dialog();
|
||||
}
|
||||
}
|
||||
--
|
||||
2.51.0
|
||||
|
||||
39
papers.spec
39
papers.spec
@ -1,3 +1,13 @@
|
||||
## START: Set by rpmautospec
|
||||
## (rpmautospec version 0.6.5)
|
||||
## RPMAUTOSPEC: autorelease, autochangelog
|
||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||
release_number = 6;
|
||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||
print(release_number + base_release_number - 1);
|
||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||
## END: Set by rpmautospec
|
||||
|
||||
%global tarball_version %%(echo %{version} | tr '~' '.')
|
||||
%global commit 5de8d26c
|
||||
|
||||
@ -52,15 +62,6 @@ Patch: papers-47.0-fast-navigation.patch
|
||||
# Fix help
|
||||
Patch: papers-47.0-help.patch
|
||||
|
||||
# Fix openning of linked files
|
||||
Patch: papers-47.0-launch-target-file.patch
|
||||
|
||||
# Fix crash during repeated signing
|
||||
Patch: papers-47.0-fix-wrong-clear.patch
|
||||
|
||||
# Fix signing when too small rectangle is selected
|
||||
Patch: papers-47.0-too-small-rect.patch
|
||||
|
||||
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
||||
ExcludeArch: %{ix86}
|
||||
|
||||
@ -262,4 +263,22 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
## START: Generated by rpmautospec
|
||||
* Thu Mar 27 2025 Marek Kasik <mkasik@redhat.com> - 47.0-6.git5de8d26c
|
||||
- Fix showing of help
|
||||
|
||||
* Mon Feb 03 2025 Marek Kasik <mkasik@redhat.com> - 47.0-5.git5de8d26c
|
||||
- Fix fast navigation
|
||||
|
||||
* Wed Jan 29 2025 Marek Kasik <mkasik@redhat.com> - 47.0-4.git5de8d26c
|
||||
- Check value of "sidebar-page" key
|
||||
|
||||
* Mon Jan 20 2025 Marek Kasik <mkasik@redhat.com> - 47.0-3.git5de8d26c
|
||||
- Update Papers to current git snapshot
|
||||
|
||||
* Wed Nov 20 2024 Tomas Pelka <tpelka@redhat.com> - 47.0-2
|
||||
- Update file gating.yaml
|
||||
|
||||
* Wed Nov 20 2024 Tomas Popela <tpopela@redhat.com> - 47.0-1
|
||||
- Initial import
|
||||
## END: Generated by rpmautospec
|
||||
|
||||
2
sources
2
sources
@ -1,2 +1,2 @@
|
||||
SHA512 (papers-5de8d26c.tar.xz) = b456f9c871caf8fe217c234dc41cbbe772d95822a808af2aa95c0745b35a67fe41a4d76d9accbde51f212ec1185bef3dd33db015b83e93673cda8259f6d843ff
|
||||
SHA512 (papers-5de8d26c-vendor.tar.xz) = 4eee4f04eb7ee77fb36ddba5d75bccfde47c398df5086a7ffa61e7b916d0f7779a44d6596bb16ec36107a7b84d2b2f56829358c55aeb7e3a7b0ca8f3fa2f1caf
|
||||
SHA512 (papers-5de8d26c.tar.xz) = b456f9c871caf8fe217c234dc41cbbe772d95822a808af2aa95c0745b35a67fe41a4d76d9accbde51f212ec1185bef3dd33db015b83e93673cda8259f6d843ff
|
||||
|
||||
Loading…
Reference in New Issue
Block a user