diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-01-03 21:16:24 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-01-03 21:16:24 (GMT) |
commit | 1d07407c3e97611bbf7c15ed6c1d6b8a37b0e228 (patch) | |
tree | dcac08723fd634767e43a63ae514232fdf091b99 /plugins/pychrysalide/glibext | |
parent | 7b739f256cb88cb627954d4a1ff04bdb4fc49515 (diff) |
Fix Python bindings loading without GTK support.
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r-- | plugins/pychrysalide/glibext/module.c | 4 |
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); |