summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2022-05-28 18:30:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2022-05-28 18:30:51 (GMT)
commit1792bd4d37121d452cb68aa23f9a1022f6022657 (patch)
treec0c04047c4c8b0fdd8b797c5e09ba96ce362f513 /plugins
parent5c72f41a11b52d5840cab461d2e73e150d829e94 (diff)
Use a simple static type definition instead of a dynamic one.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysalide/gtkext/named.c7
1 files changed, 1 insertions, 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;
}