diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-03-04 20:52:50 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-03-04 20:52:50 (GMT) |
commit | 27c21356d494824850005932f3dee5f38d7a8e82 (patch) | |
tree | 6d7381f9cde78d28b4664f73ef03d0adb5b7b288 /plugins/pychrysalide/gtkext/module.c | |
parent | 72bebbd9dc7d59f69e23442b6c5b5526feb2a1a9 (diff) |
Provided access to the graph layout from Python.
Diffstat (limited to 'plugins/pychrysalide/gtkext/module.c')
-rw-r--r-- | plugins/pychrysalide/gtkext/module.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/pychrysalide/gtkext/module.c b/plugins/pychrysalide/gtkext/module.c index 2108b04..8b6954f 100644 --- a/plugins/pychrysalide/gtkext/module.c +++ b/plugins/pychrysalide/gtkext/module.c @@ -32,6 +32,7 @@ #include "bufferdisplay.h" #include "displaypanel.h" #include "dockable.h" +#include "graph/module.h" #include "../helpers.h" @@ -68,6 +69,11 @@ bool add_gtkext_module(PyObject *super) result = (module != NULL); + if (result) result = add_gtkext_graph_module(module); + + if (!result) + Py_XDECREF(module); + return result; } @@ -96,6 +102,8 @@ bool populate_gtkext_module(void) if (result) result = ensure_python_display_panel_is_registered(); if (result) result = ensure_python_gtk_dockable_is_registered(); + if (result) result = populate_gtkext_graph_module(); + assert(result); return result; |