diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2025-01-13 07:40:18 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2025-01-13 07:40:18 (GMT) |
commit | 9d6c6af8ea3a21e206b0ffb65c04db5cca7154b1 (patch) | |
tree | 6e86a71bdaff606ed063fe18bd5738538e277b9f /plugins/pychrysalide | |
parent | 0c7b4302f4479eff37aee234382fbfe661f29de8 (diff) |
Clean code.gtk4
Diffstat (limited to 'plugins/pychrysalide')
-rw-r--r-- | plugins/pychrysalide/bindings.c | 4 | ||||
-rw-r--r-- | plugins/pychrysalide/core.c | 62 |
2 files changed, 2 insertions, 64 deletions
diff --git a/plugins/pychrysalide/bindings.c b/plugins/pychrysalide/bindings.c index f715a8e..02850d1 100644 --- a/plugins/pychrysalide/bindings.c +++ b/plugins/pychrysalide/bindings.c @@ -35,8 +35,8 @@ #include <config.h> #include <common/cpp.h> #include <common/extstr.h> -#include <plugins/pglist.h> // REMME ? -#include <plugins/self.h> // REMME ? +#include <plugins/pglist.h> +#include <plugins/self.h> #include "access.h" diff --git a/plugins/pychrysalide/core.c b/plugins/pychrysalide/core.c index 3c551c7..fde1028 100644 --- a/plugins/pychrysalide/core.c +++ b/plugins/pychrysalide/core.c @@ -306,68 +306,6 @@ bool g_pychrysalide_plugin_create(GPyChrysalidePlugin *plugin, GModule *module) - - - - - - - - - - - -#if 0 - - - -/****************************************************************************** -* * -* Paramètres : plugin = greffon à manipuler. * -* action = type d'action attendue. * -* type = type d'objet à mettre en place. * -* * -* Description : Crée une instance à partir d'un type dynamique externe. * -* * -* Retour : Instance d'objet gérée par l'extension ou NULL. * -* * -* Remarques : - * -* * -******************************************************************************/ - -G_MODULE_EXPORT gpointer chrysalide_plugin_build_type_instance(GPluginModule *plugin, PluginAction action, GType type) -{ - gpointer result; /* Instance à retourner */ - PyGILState_STATE gstate; /* Sauvegarde d'environnement */ - PyTypeObject *pytype; /* Classe Python concernée */ - PyObject *instance; /* Initialisation forcée */ - - result = NULL; - - gstate = PyGILState_Ensure(); - - pytype = pygobject_lookup_class(type); - - if (pytype != NULL) - { - instance = PyObject_CallObject((PyObject *)pytype, NULL); - assert(instance != NULL); - - result = pygobject_get(instance); - - } - - PyGILState_Release(gstate); - - return result; - -} - -#endif - - - - /* ---------------------------------------------------------------------------------- */ /* IMPLEMENTATION DES FONCTIONS DE CLASSE */ /* ---------------------------------------------------------------------------------- */ |