diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-29 22:30:58 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-29 22:30:58 (GMT) |
commit | 6ba73df8224dc2a88fe5f37a331960936758036e (patch) | |
tree | 3db220cc946f3a23887016f3922fe94545e27620 /plugins/pychrysa/pychrysa.c | |
parent | d91239074b9042988d08093948059096942bdcfc (diff) |
Skipped the link to the global reference space when loading plugins.
Diffstat (limited to 'plugins/pychrysa/pychrysa.c')
-rw-r--r-- | plugins/pychrysa/pychrysa.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/pychrysa/pychrysa.c b/plugins/pychrysa/pychrysa.c index a404c1a..e9efc54 100644 --- a/plugins/pychrysa/pychrysa.c +++ b/plugins/pychrysa/pychrysa.c @@ -74,7 +74,7 @@ static bool is_current_abi_suitable(void); static bool set_version_for_gtk_namespace(const char *); /* Charge autant de greffons composés en Python que possible. */ -static bool load_python_plugins(GPluginModule *plugin, GObject *); +static bool load_python_plugins(GPluginModule *); @@ -402,7 +402,6 @@ PyMODINIT_FUNC PyInit_pychrysalide(void) /****************************************************************************** * * * Paramètres : plugin = instance représentant le greffon Python d'origine. * -* ref = espace de référencement global. * * * * Description : Charge autant de greffons composés en Python que possible. * * * @@ -412,7 +411,7 @@ PyMODINIT_FUNC PyInit_pychrysalide(void) * * ******************************************************************************/ -static bool load_python_plugins(GPluginModule *plugin, GObject *ref) +static bool load_python_plugins(GPluginModule *plugin) { char *paths; /* Emplacements de greffons */ char *save; /* Sauvegarde pour ré-entrance */ @@ -468,7 +467,7 @@ static bool load_python_plugins(GPluginModule *plugin, GObject *ref) filename = stradd(filename, G_DIR_SEPARATOR_S); filename = stradd(filename, entry->d_name); - pyplugin = g_python_plugin_new(modname, filename, ref); + pyplugin = g_python_plugin_new(modname, filename); if (pyplugin == NULL) g_plugin_module_log_variadic_message(plugin, LMT_ERROR, @@ -499,7 +498,6 @@ static bool load_python_plugins(GPluginModule *plugin, GObject *ref) /****************************************************************************** * * * Paramètres : plugin = greffon à manipuler. * -* ref = espace de référencement global. * * * * Description : Prend acte du chargement du greffon. * * * @@ -509,7 +507,7 @@ static bool load_python_plugins(GPluginModule *plugin, GObject *ref) * * ******************************************************************************/ -G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin, GObject *ref) +G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin) { bool result; /* Bilan à retourner */ DIR *dir; /* Répertoire à parcourir */ @@ -548,7 +546,7 @@ G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin, GObject *ref) PySys_SetArgv(0, (wchar_t *[]) { NULL }); - result = load_python_plugins(plugin, ref); + result = load_python_plugins(plugin); cpi_done: |