diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-03-01 14:12:55 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-03-01 14:15:09 +0100 |
commit | 47ca700313a5a01e042d1308598b10e2fdc24af4 (patch) | |
tree | 3d7bacbf0c0a50d58fd5e76b7fd9ec5d3616b675 /app-editors/mousepad/files | |
parent | gnome-extra/cinnamon-settings-daemon: Fix meson script shebangs (diff) | |
download | gentoo-47ca700313a5a01e042d1308598b10e2fdc24af4.tar.gz gentoo-47ca700313a5a01e042d1308598b10e2fdc24af4.tar.bz2 gentoo-47ca700313a5a01e042d1308598b10e2fdc24af4.zip |
app-editors/mousepad: Backport select-all fix
Closes: https://bugs.gentoo.org/772245
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-editors/mousepad/files')
-rw-r--r-- | app-editors/mousepad/files/mousepad-0.5.2-select-all.patch | 28 |
1 files changed, 28 insertions, 0 deletions
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 new file mode 100644 index 000000000000..46762e687c46 --- /dev/null +++ b/app-editors/mousepad/files/mousepad-0.5.2-select-all.patch @@ -0,0 +1,28 @@ +From 8473653ad37a32375ff416205c0f44f771f380df Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Mon, 1 Mar 2021 13:36:33 +0100 +Subject: [PATCH] Fix missing parameter to "select-all" signal + +Add missing "select" parameter to the "select-all" signal. This fixes +undefined behavior reported in https://bugs.gentoo.org/772245. +Thanks to Mart Raudsepp for figuring out the problem. +--- + mousepad/mousepad-window.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mousepad/mousepad-window.c b/mousepad/mousepad-window.c +index 2f901b2..9ba6223 100644 +--- a/mousepad/mousepad-window.c ++++ b/mousepad/mousepad-window.c +@@ -5223,7 +5223,7 @@ mousepad_window_action_select_all (GSimpleAction *action, + g_return_if_fail (MOUSEPAD_IS_DOCUMENT (window->active)); + + /* select everything in the document */ +- g_signal_emit_by_name (window->active->textview, "select-all"); ++ g_signal_emit_by_name (window->active->textview, "select-all", TRUE); + } + + +-- +GitLab + |