Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/mousepad/, app-editors/mousepad/files/
Date: Mon, 01 Mar 2021 13:15:16
Message-Id: 1614604509.47ca700313a5a01e042d1308598b10e2fdc24af4.mgorny@gentoo
1 commit: 47ca700313a5a01e042d1308598b10e2fdc24af4
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 1 13:12:55 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 1 13:15:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47ca7003
7
8 app-editors/mousepad: Backport select-all fix
9
10 Closes: https://bugs.gentoo.org/772245
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 .../mousepad/files/mousepad-0.5.2-select-all.patch | 28 ++++++++++++++++++++++
14 ...sepad-0.5.2.ebuild => mousepad-0.5.2-r1.ebuild} | 4 ++++
15 ...sepad-0.5.3.ebuild => mousepad-0.5.3-r1.ebuild} | 4 ++++
16 3 files changed, 36 insertions(+)
17
18 diff --git a/app-editors/mousepad/files/mousepad-0.5.2-select-all.patch b/app-editors/mousepad/files/mousepad-0.5.2-select-all.patch
19 new file mode 100644
20 index 00000000000..46762e687c4
21 --- /dev/null
22 +++ b/app-editors/mousepad/files/mousepad-0.5.2-select-all.patch
23 @@ -0,0 +1,28 @@
24 +From 8473653ad37a32375ff416205c0f44f771f380df Mon Sep 17 00:00:00 2001
25 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
26 +Date: Mon, 1 Mar 2021 13:36:33 +0100
27 +Subject: [PATCH] Fix missing parameter to "select-all" signal
28 +
29 +Add missing "select" parameter to the "select-all" signal. This fixes
30 +undefined behavior reported in https://bugs.gentoo.org/772245.
31 +Thanks to Mart Raudsepp for figuring out the problem.
32 +---
33 + mousepad/mousepad-window.c | 2 +-
34 + 1 file changed, 1 insertion(+), 1 deletion(-)
35 +
36 +diff --git a/mousepad/mousepad-window.c b/mousepad/mousepad-window.c
37 +index 2f901b2..9ba6223 100644
38 +--- a/mousepad/mousepad-window.c
39 ++++ b/mousepad/mousepad-window.c
40 +@@ -5223,7 +5223,7 @@ mousepad_window_action_select_all (GSimpleAction *action,
41 + g_return_if_fail (MOUSEPAD_IS_DOCUMENT (window->active));
42 +
43 + /* select everything in the document */
44 +- g_signal_emit_by_name (window->active->textview, "select-all");
45 ++ g_signal_emit_by_name (window->active->textview, "select-all", TRUE);
46 + }
47 +
48 +
49 +--
50 +GitLab
51 +
52
53 diff --git a/app-editors/mousepad/mousepad-0.5.2.ebuild b/app-editors/mousepad/mousepad-0.5.2-r1.ebuild
54 similarity index 93%
55 rename from app-editors/mousepad/mousepad-0.5.2.ebuild
56 rename to app-editors/mousepad/mousepad-0.5.2-r1.ebuild
57 index e11ee91e2ab..ed7d2cd8fcf 100644
58 --- a/app-editors/mousepad/mousepad-0.5.2.ebuild
59 +++ b/app-editors/mousepad/mousepad-0.5.2-r1.ebuild
60 @@ -23,6 +23,10 @@ BDEPEND="
61 sys-devel/gettext
62 virtual/pkgconfig"
63
64 +PATCHES=(
65 + "${FILESDIR}"/mousepad-0.5.2-select-all.patch
66 +)
67 +
68 pkg_postinst() {
69 gnome2_schemas_update
70 xdg_desktop_database_update
71
72 diff --git a/app-editors/mousepad/mousepad-0.5.3.ebuild b/app-editors/mousepad/mousepad-0.5.3-r1.ebuild
73 similarity index 93%
74 rename from app-editors/mousepad/mousepad-0.5.3.ebuild
75 rename to app-editors/mousepad/mousepad-0.5.3-r1.ebuild
76 index 727e1bf8656..3440cd70cd8 100644
77 --- a/app-editors/mousepad/mousepad-0.5.3.ebuild
78 +++ b/app-editors/mousepad/mousepad-0.5.3-r1.ebuild
79 @@ -23,6 +23,10 @@ BDEPEND="
80 sys-devel/gettext
81 virtual/pkgconfig"
82
83 +PATCHES=(
84 + "${FILESDIR}"/mousepad-0.5.2-select-all.patch
85 +)
86 +
87 pkg_postinst() {
88 gnome2_schemas_update
89 xdg_desktop_database_update