wok-current rev 25771
Add gtk+ miss patch
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun May 11 19:03:46 2025 +0000 (4 months ago) |
parents | 4df81955d899 |
children | c0b896dffa7b |
files | gtk+/stuff/stop-looking-for-modules-in-cwd.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gtk+/stuff/stop-looking-for-modules-in-cwd.patch Sun May 11 19:03:46 2025 +0000 1.3 @@ -0,0 +1,32 @@ 1.4 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 1.5 +From: Matthias Clasen <mclasen@redhat.com> 1.6 +Date: Sat, 15 Jun 2024 14:18:01 -0400 1.7 +Subject: [PATCH] Stop looking for modules in cwd 1.8 + 1.9 +This is just not a good idea. It is surprising, and can be misused. 1.10 + 1.11 +Fixes: #6786 1.12 +--- 1.13 + gtk/gtkmodules.c | 9 ++------- 1.14 + 1 file changed, 2 insertions(+), 7 deletions(-) 1.15 + 1.16 +diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c 1.17 +index 50729b61a590..c0f0c30a2148 100644 1.18 +--- a/gtk/gtkmodules.c 1.19 ++++ b/gtk/gtkmodules.c 1.20 +@@ -229,13 +229,8 @@ find_module (const gchar *name) 1.21 + gchar *module_name; 1.22 + 1.23 + module_name = _gtk_find_module (name, "modules"); 1.24 +- if (!module_name) 1.25 +- { 1.26 +- /* As last resort, try loading without an absolute path (using system 1.27 +- * library path) 1.28 +- */ 1.29 +- module_name = g_module_build_path (NULL, name); 1.30 +- } 1.31 ++ if (module_name == NULL) 1.32 ++ return NULL; 1.33 + 1.34 + module = g_module_open (module_name, G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY); 1.35 +