diff options
-rw-r--r-- | recipes-graphics/gpicview/gpicview/0001-Add-missing-return-value.patch | 28 | ||||
-rw-r--r-- | recipes-graphics/gpicview/gpicview_0.2.5.bb | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/recipes-graphics/gpicview/gpicview/0001-Add-missing-return-value.patch b/recipes-graphics/gpicview/gpicview/0001-Add-missing-return-value.patch new file mode 100644 index 00000000..bdd40d46 --- /dev/null +++ b/recipes-graphics/gpicview/gpicview/0001-Add-missing-return-value.patch @@ -0,0 +1,28 @@ +From f7f8e64a78de237825bec9a54906d2b120ecc9f1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ingo=20Br=C3=BCckl?= <ib@wupperonline.de> +Date: Mon, 17 Jul 2023 14:52:07 +0200 +Subject: [PATCH] Add missing return value + +Based on https://sourceforge.net/p/lxde/patches/460. + +Upstream-Status: Backport [https://github.com/lxde/gpicview/commit/f7f8e64a78de237825bec9a54906d2b120ecc9f1] +--- + src/main-win.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main-win.c b/src/main-win.c +index 32f6433..09eeb34 100644 +--- a/src/main-win.c ++++ b/src/main-win.c +@@ -378,7 +378,7 @@ gboolean main_win_open( MainWin* mw, const char* file_path, ZoomMode zoom ) + image_list_sort_by_name( mw->img_list, GTK_SORT_DESCENDING ); + if (image_list_get_first(mw->img_list)) + main_win_open(mw, image_list_get_current_file_path(mw->img_list), zoom); +- return; ++ return TRUE; + } + + +-- +2.42.0 + diff --git a/recipes-graphics/gpicview/gpicview_0.2.5.bb b/recipes-graphics/gpicview/gpicview_0.2.5.bb index 170db77a..0ba6a1ed 100644 --- a/recipes-graphics/gpicview/gpicview_0.2.5.bb +++ b/recipes-graphics/gpicview/gpicview_0.2.5.bb @@ -11,6 +11,7 @@ RDEPENDS:${PN} = "adwaita-icon-theme" SRC_URI = " \ ${SOURCEFORGE_MIRROR}/lxde/${P}.tar.xz \ file://0001-gpicview-allow-to-build-for-gtk-wayland.patch \ + file://0001-Add-missing-return-value.patch \ " SRC_URI[md5sum] = "26be9b0c5a234f1afe7d83d02a4a33f4" SRC_URI[sha256sum] = "38466058e53702450e5899193c4b264339959b563dd5cd81f6f690de32d82942" |