media-gfx/geeqie: backport some upstream fixes

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2025-06-07 12:10:35 +02:00
parent dc3026d5a7
commit 0c2e1a1bbf
3 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
From 609904da196d833d1657e8eda51f31528373c281 Mon Sep 17 00:00:00 2001
From: Colin Clark <colin.clark@cclark.uk>
Date: Tue, 27 May 2025 11:10:36 +0100
Subject: [PATCH] Fix #1743: Slow since 2.6
https://github.com/BestImageViewer/geeqie/issues/1743
Incorrect init. function used.
---
src/main.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.cc b/src/main.cc
index 41e37b69..9365a729 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1053,7 +1053,7 @@ gint main(gint argc, gchar *argv[])
if (!gq_disable_clutter || tolower(gq_disable_clutter[0]) != 'y')
{
- if (clutter_init(nullptr, nullptr) != CLUTTER_INIT_SUCCESS)
+ if (gtk_clutter_init(nullptr, nullptr) != CLUTTER_INIT_SUCCESS)
{
fprintf(stderr,
_("Can't initialize clutter-gtk. \n \

View File

@@ -0,0 +1,31 @@
From 0dd297128f1843e5700ed3f0d8b95d3056a3d5a3 Mon Sep 17 00:00:00 2001
From: Colin Clark <colin.clark@cclark.uk>
Date: Tue, 3 Jun 2025 15:09:04 +0100
Subject: [PATCH] Fix #1765: No thumbnails shown in browser view on geeqie
start
https://github.com/BestImageViewer/geeqie/issues/1765
Not a fix, just a workaround.
---
src/main.cc | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/main.cc b/src/main.cc
index 9600cd42..6345533f 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -892,6 +892,13 @@ void activate_cb(GtkApplication *, gpointer)
if (lw->window)
{
gtk_widget_show(lw->window);
+
+ /** @FIXME This is not a fix - it is a workaround
+ * https://github.com/BestImageViewer/geeqie/issues/1765
+ * The reason for the bug is unknown.
+ * The origin is in commit 0ec522a0 - convert Geeqie to GtkApplication
+ */
+ layout_refresh(lw);
}
}

View File

@@ -49,7 +49,10 @@ BDEPEND="
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
PATCHES=( "${FILESDIR}"/${PN}-2.5-test-ancillary.patch )
PATCHES=( "${FILESDIR}"/${PN}-2.5-test-ancillary.patch
"${FILESDIR}"/${P}-incorrect_init.patch
"${FILESDIR}"/${P}-start_thumbnail.patch
)
pkg_setup() {
# Do not require setting LUA_SINGLE_TARGET if lua is not used