summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis
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/analysis
parent7b739f256cb88cb627954d4a1ff04bdb4fc49515 (diff)
Fix Python bindings loading without GTK support.
Diffstat (limited to 'plugins/pychrysalide/analysis')
-rw-r--r--plugins/pychrysalide/analysis/loaded.c2
-rw-r--r--plugins/pychrysalide/analysis/module.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/plugins/pychrysalide/analysis/loaded.c b/plugins/pychrysalide/analysis/loaded.c
index 4a5d8f9..84c9bfd 100644
--- a/plugins/pychrysalide/analysis/loaded.c
+++ b/plugins/pychrysalide/analysis/loaded.c
@@ -1586,8 +1586,10 @@ bool ensure_python_loaded_content_is_registered(void)
dict = PyModule_GetDict(module);
+#ifdef HAVE_GTK_SUPPORT
if (!ensure_python_named_widget_is_registered())
return false;
+#endif
if (!register_class_for_pygobject(dict, G_TYPE_LOADED_CONTENT, type, &PyGObject_Type))
return false;
diff --git a/plugins/pychrysalide/analysis/module.c b/plugins/pychrysalide/analysis/module.c
index 9632956..6b8e441 100644
--- a/plugins/pychrysalide/analysis/module.c
+++ b/plugins/pychrysalide/analysis/module.c
@@ -41,6 +41,7 @@
#include "contents/module.h"
#include "db/module.h"
#include "disass/module.h"
+#include "scan/module.h"
#include "storage/module.h"
#include "types/module.h"
#include "../helpers.h"
@@ -86,6 +87,7 @@ bool add_analysis_module(PyObject *super)
if (result) result = add_analysis_contents_module(module);
if (result) result = add_analysis_db_module(module);
if (result) result = add_analysis_disass_module(module);
+ if (result) result = add_analysis_scan_module(module);
if (result) result = add_analysis_storage_module(module);
if (result) result = add_analysis_types_module(module);
@@ -131,6 +133,7 @@ bool populate_analysis_module(void)
if (result) result = populate_analysis_contents_module();
if (result) result = populate_analysis_db_module();
if (result) result = populate_analysis_disass_module();
+ if (result) result = populate_analysis_scan_module();
if (result) result = populate_analysis_storage_module();
if (result) result = populate_analysis_types_module();