From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 850F51382C5 for ; Mon, 1 Mar 2021 13:15:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D8686E091D; Mon, 1 Mar 2021 13:15:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C0BFCE091D for ; Mon, 1 Mar 2021 13:15:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B9F4234102E for ; Mon, 1 Mar 2021 13:15:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 670B8C3 for ; Mon, 1 Mar 2021 13:15:13 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1614604509.47ca700313a5a01e042d1308598b10e2fdc24af4.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/mousepad/, app-editors/mousepad/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/mousepad/files/mousepad-0.5.2-select-all.patch app-editors/mousepad/mousepad-0.5.2-r1.ebuild app-editors/mousepad/mousepad-0.5.2.ebuild app-editors/mousepad/mousepad-0.5.3-r1.ebuild app-editors/mousepad/mousepad-0.5.3.ebuild X-VCS-Directories: app-editors/mousepad/files/ app-editors/mousepad/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 47ca700313a5a01e042d1308598b10e2fdc24af4 X-VCS-Branch: master Date: Mon, 1 Mar 2021 13:15:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f3abd793-d803-43bd-9fc2-941be81bbf34 X-Archives-Hash: 6d8063cc504ae5ee02b629de30060b54 commit: 47ca700313a5a01e042d1308598b10e2fdc24af4 Author: Michał Górny gentoo org> AuthorDate: Mon Mar 1 13:12:55 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Mar 1 13:15:09 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47ca7003 app-editors/mousepad: Backport select-all fix Closes: https://bugs.gentoo.org/772245 Signed-off-by: Michał Górny gentoo.org> .../mousepad/files/mousepad-0.5.2-select-all.patch | 28 ++++++++++++++++++++++ ...sepad-0.5.2.ebuild => mousepad-0.5.2-r1.ebuild} | 4 ++++ ...sepad-0.5.3.ebuild => mousepad-0.5.3-r1.ebuild} | 4 ++++ 3 files changed, 36 insertions(+) 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 00000000000..46762e687c4 --- /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?= +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 + diff --git a/app-editors/mousepad/mousepad-0.5.2.ebuild b/app-editors/mousepad/mousepad-0.5.2-r1.ebuild similarity index 93% rename from app-editors/mousepad/mousepad-0.5.2.ebuild rename to app-editors/mousepad/mousepad-0.5.2-r1.ebuild index e11ee91e2ab..ed7d2cd8fcf 100644 --- a/app-editors/mousepad/mousepad-0.5.2.ebuild +++ b/app-editors/mousepad/mousepad-0.5.2-r1.ebuild @@ -23,6 +23,10 @@ BDEPEND=" sys-devel/gettext virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/mousepad-0.5.2-select-all.patch +) + pkg_postinst() { gnome2_schemas_update xdg_desktop_database_update diff --git a/app-editors/mousepad/mousepad-0.5.3.ebuild b/app-editors/mousepad/mousepad-0.5.3-r1.ebuild similarity index 93% rename from app-editors/mousepad/mousepad-0.5.3.ebuild rename to app-editors/mousepad/mousepad-0.5.3-r1.ebuild index 727e1bf8656..3440cd70cd8 100644 --- a/app-editors/mousepad/mousepad-0.5.3.ebuild +++ b/app-editors/mousepad/mousepad-0.5.3-r1.ebuild @@ -23,6 +23,10 @@ BDEPEND=" sys-devel/gettext virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/mousepad-0.5.2-select-all.patch +) + pkg_postinst() { gnome2_schemas_update xdg_desktop_database_update