diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-01-28 22:36:19 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-01-28 22:36:19 (GMT) |
commit | 7560e598bf1136b4e7989124fe2b4665508b67b3 (patch) | |
tree | 8426c8353369841fc93cf977b6743ba6ced84ec0 /plugins/pychrysalide/glibext | |
parent | 94cb8acac1027a4deee933c84d7918f4a5ea4983 (diff) |
Included interfaces into the Python module gathering all features.
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r-- | plugins/pychrysalide/glibext/linegen.c | 4 | ||||
-rw-r--r-- | plugins/pychrysalide/glibext/loadedpanel.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/pychrysalide/glibext/linegen.c b/plugins/pychrysalide/glibext/linegen.c index 7b93f7e..c9ad013 100644 --- a/plugins/pychrysalide/glibext/linegen.c +++ b/plugins/pychrysalide/glibext/linegen.c @@ -407,7 +407,9 @@ bool ensure_python_line_generator_is_registered(void) module = get_access_to_python_module("pychrysalide.glibext"); dict = PyModule_GetDict(module); - pyg_register_interface(dict, "LineGenerator", G_TYPE_LINE_GENERATOR, type); + + if (!register_interface_for_pygobject(dict, G_TYPE_LINE_GENERATOR, type)) + return false; } diff --git a/plugins/pychrysalide/glibext/loadedpanel.c b/plugins/pychrysalide/glibext/loadedpanel.c index 949ed1c..d9364c5 100644 --- a/plugins/pychrysalide/glibext/loadedpanel.c +++ b/plugins/pychrysalide/glibext/loadedpanel.c @@ -186,7 +186,9 @@ bool ensure_python_loaded_panel_is_registered(void) module = get_access_to_python_module("pychrysalide.glibext"); dict = PyModule_GetDict(module); - pyg_register_interface(dict, "LoadedPanel", G_TYPE_LOADED_PANEL, type); + + if (!register_interface_for_pygobject(dict, G_TYPE_LOADED_PANEL, type)) + return false; if (!py_loaded_panel_define_constants(type)) return false; |