summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-01-03 21:16:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-01-03 21:16:24 (GMT)
commit1d07407c3e97611bbf7c15ed6c1d6b8a37b0e228 (patch)
treedcac08723fd634767e43a63ae514232fdf091b99 /plugins/pychrysalide/glibext
parent7b739f256cb88cb627954d4a1ff04bdb4fc49515 (diff)
Fix Python bindings loading without GTK support.
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r--plugins/pychrysalide/glibext/module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/pychrysalide/glibext/module.c b/plugins/pychrysalide/glibext/module.c
index 634cf5c..9d3f004 100644
--- a/plugins/pychrysalide/glibext/module.c
+++ b/plugins/pychrysalide/glibext/module.c
@@ -111,14 +111,18 @@ bool populate_glibext_module(void)
if (result) result = ensure_python_binary_portion_is_registered();
if (result) result = ensure_python_buffer_cache_is_registered();
if (result) result = ensure_python_buffer_line_is_registered();
+#ifdef HAVE_GTK_SUPPORT
if (result) result = ensure_python_buffer_view_is_registered();
+#endif
if (result) result = ensure_python_config_param_is_registered();
if (result) result = ensure_python_config_param_iterator_is_registered();
if (result) result = ensure_python_generic_config_is_registered();
if (result) result = ensure_python_line_cursor_is_registered();
if (result) result = ensure_python_line_generator_is_registered();
+#ifdef HAVE_GTK_SUPPORT
if (result) result = ensure_python_loaded_panel_is_registered();
if (result) result = ensure_python_named_widget_is_registered();
+#endif
if (result) result = ensure_python_singleton_factory_is_registered();
assert(result);