diff options
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; |