From 1792bd4d37121d452cb68aa23f9a1022f6022657 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sat, 28 May 2022 20:30:51 +0200
Subject: Use a simple static type definition instead of a dynamic one.

---
 plugins/pychrysalide/gtkext/named.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/plugins/pychrysalide/gtkext/named.c b/plugins/pychrysalide/gtkext/named.c
index e272097..1d336f1 100644
--- a/plugins/pychrysalide/gtkext/named.c
+++ b/plugins/pychrysalide/gtkext/named.c
@@ -278,12 +278,7 @@ PyTypeObject *get_python_built_named_widget_type(void)
 
     };
 
-    static PyTypeObject *result = NULL;
-
-    if (result == NULL)
-        result = define_python_dynamic_type(&py_built_named_widget_type);
-
-    return result;
+    return &py_built_named_widget_type;
 
 }
 
-- 
cgit v0.11.2-87-g4458