From 47ca700313a5a01e042d1308598b10e2fdc24af4 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 1 Mar 2021 14:12:55 +0100 Subject: app-editors/mousepad: Backport select-all fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/772245 Signed-off-by: Michał Górny --- .../mousepad/files/mousepad-0.5.2-select-all.patch | 28 +++++++++++++++ app-editors/mousepad/mousepad-0.5.2-r1.ebuild | 40 ++++++++++++++++++++++ app-editors/mousepad/mousepad-0.5.2.ebuild | 36 ------------------- app-editors/mousepad/mousepad-0.5.3-r1.ebuild | 40 ++++++++++++++++++++++ app-editors/mousepad/mousepad-0.5.3.ebuild | 36 ------------------- 5 files changed, 108 insertions(+), 72 deletions(-) create mode 100644 app-editors/mousepad/files/mousepad-0.5.2-select-all.patch create mode 100644 app-editors/mousepad/mousepad-0.5.2-r1.ebuild delete mode 100644 app-editors/mousepad/mousepad-0.5.2.ebuild create mode 100644 app-editors/mousepad/mousepad-0.5.3-r1.ebuild delete mode 100644 app-editors/mousepad/mousepad-0.5.3.ebuild (limited to 'app-editors') 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?= +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-r1.ebuild b/app-editors/mousepad/mousepad-0.5.2-r1.ebuild new file mode 100644 index 000000000000..ed7d2cd8fcf0 --- /dev/null +++ b/app-editors/mousepad/mousepad-0.5.2-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit gnome2-utils xdg-utils + +DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment" +HOMEPAGE="https://git.xfce.org/apps/mousepad/about/" +SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 x86" + +RDEPEND=">=dev-libs/glib-2.52 + >=xfce-base/xfconf-4.12:= + >=x11-libs/gtk+-3.22:3 + >=x11-libs/gtksourceview-3.24:3.0" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-lang/perl + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/mousepad-0.5.2-select-all.patch +) + +pkg_postinst() { + gnome2_schemas_update + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + gnome2_schemas_update + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/app-editors/mousepad/mousepad-0.5.2.ebuild b/app-editors/mousepad/mousepad-0.5.2.ebuild deleted file mode 100644 index e11ee91e2abb..000000000000 --- a/app-editors/mousepad/mousepad-0.5.2.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit gnome2-utils xdg-utils - -DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment" -HOMEPAGE="https://git.xfce.org/apps/mousepad/about/" -SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 x86" - -RDEPEND=">=dev-libs/glib-2.52 - >=xfce-base/xfconf-4.12:= - >=x11-libs/gtk+-3.22:3 - >=x11-libs/gtksourceview-3.24:3.0" -DEPEND="${RDEPEND}" -BDEPEND=" - dev-lang/perl - dev-util/intltool - sys-devel/gettext - virtual/pkgconfig" - -pkg_postinst() { - gnome2_schemas_update - xdg_desktop_database_update - xdg_icon_cache_update -} - -pkg_postrm() { - gnome2_schemas_update - xdg_desktop_database_update - xdg_icon_cache_update -} diff --git a/app-editors/mousepad/mousepad-0.5.3-r1.ebuild b/app-editors/mousepad/mousepad-0.5.3-r1.ebuild new file mode 100644 index 000000000000..3440cd70cd85 --- /dev/null +++ b/app-editors/mousepad/mousepad-0.5.3-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit gnome2-utils xdg-utils + +DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment" +HOMEPAGE="https://git.xfce.org/apps/mousepad/about/" +SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=">=dev-libs/glib-2.52 + >=xfce-base/xfconf-4.12:= + >=x11-libs/gtk+-3.22:3 + >=x11-libs/gtksourceview-3.24:3.0" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-lang/perl + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/mousepad-0.5.2-select-all.patch +) + +pkg_postinst() { + gnome2_schemas_update + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + gnome2_schemas_update + xdg_desktop_database_update + xdg_icon_cache_update +} diff --git a/app-editors/mousepad/mousepad-0.5.3.ebuild b/app-editors/mousepad/mousepad-0.5.3.ebuild deleted file mode 100644 index 727e1bf86564..000000000000 --- a/app-editors/mousepad/mousepad-0.5.3.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit gnome2-utils xdg-utils - -DESCRIPTION="GTK+-based editor for the Xfce Desktop Environment" -HOMEPAGE="https://git.xfce.org/apps/mousepad/about/" -SRC_URI="https://archive.xfce.org/src/apps/${PN}/${PV%.*}/${P}.tar.bz2" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86" - -RDEPEND=">=dev-libs/glib-2.52 - >=xfce-base/xfconf-4.12:= - >=x11-libs/gtk+-3.22:3 - >=x11-libs/gtksourceview-3.24:3.0" -DEPEND="${RDEPEND}" -BDEPEND=" - dev-lang/perl - dev-util/intltool - sys-devel/gettext - virtual/pkgconfig" - -pkg_postinst() { - gnome2_schemas_update - xdg_desktop_database_update - xdg_icon_cache_update -} - -pkg_postrm() { - gnome2_schemas_update - xdg_desktop_database_update - xdg_icon_cache_update -} -- cgit v1.2.3-65-gdbad