diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 09:47:29 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 10:07:59 (GMT) |
commit | acd37cbf8578686d2e5bae64b6b4eb6d2bc5376b (patch) | |
tree | c3ec34400c422ccd3e0f122ae6c0ec7ea67e37de /plugins/pychrysa/pychrysa.c | |
parent | 8ca477e012b11a19363542d171b8e973d637641c (diff) |
Deleted the reference to the main window in all panels.
Diffstat (limited to 'plugins/pychrysa/pychrysa.c')
-rw-r--r-- | plugins/pychrysa/pychrysa.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/plugins/pychrysa/pychrysa.c b/plugins/pychrysa/pychrysa.c index f4cfe90..a404c1a 100644 --- a/plugins/pychrysa/pychrysa.c +++ b/plugins/pychrysa/pychrysa.c @@ -43,7 +43,6 @@ #include "helpers.h" #include "plugin.h" -#include "quirks.h" #include "analysis/module.h" #include "arch/module.h" #include "common/module.h" @@ -68,9 +67,6 @@ static PyObject *py_chrysalide_version(PyObject *, PyObject *); /* Fournit la version du greffon pour Python. */ static PyObject *py_chrysalide_mod_version(PyObject *, PyObject *); -/* Recherche et fournit si elle existe une valeur globale. */ -static PyObject *py_chrysalide_get_global_gobject(PyObject *, PyObject *); - /* Détermine si l'interpréteur lancé est celui pris en compte. */ static bool is_current_abi_suitable(void); @@ -159,41 +155,6 @@ static PyObject *py_chrysalide_mod_version(PyObject *self, PyObject *args) /****************************************************************************** * * -* Paramètres : self = NULL car méthode statique. * -* args = contient la clef d'accès à un champ particulier. * -* * -* Description : Recherche et fournit si elle existe une valeur globale. * -* * -* Retour : Object attaché à l'espace de référencement global ou NULL. * -* * -* Remarques : - * -* * -******************************************************************************/ - -static PyObject *py_chrysalide_get_global_gobject(PyObject *self, PyObject *args) -{ - PyObject *result; /* Instance à retourner */ - const char *key; /* Désignation du champ visé */ - int ret; /* Bilan de lecture des args. */ - void *data; /* Donnée quelconque */ - - ret = PyArg_ParseTuple(args, "s", &key); - if (!ret) Py_RETURN_NONE; - - data = g_object_get_data(get_internal_ref(), key); - if (data == NULL) Py_RETURN_NONE; - - if (!G_IS_OBJECT(data)) Py_RETURN_NONE; - - result = pygobject_new(G_OBJECT(data)); - - return result; - -} - - -/****************************************************************************** -* * * Paramètres : - * * * * Description : Détermine si l'interpréteur lancé est celui pris en compte. * @@ -348,10 +309,6 @@ PyMODINIT_FUNC PyInit_pychrysalide(void) METH_NOARGS, "mod_version(/)\n--\n\nProvide the version number of Chrysalide module for Python." }, - { "get_global_gobject", py_chrysalide_get_global_gobject, - METH_VARARGS, - "get_global_gobject(key, /)\n--\n\nRetrieve if it exists a global GObject registered with the given key." - }, { NULL } }; @@ -558,8 +515,6 @@ G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin, GObject *ref) DIR *dir; /* Répertoire à parcourir */ int ret; /* Bilan de préparatifs */ - define_internal_ref(ref); - /* Définition des zones d'influence */ dir = opendir(PLUGINS_DIR G_DIR_SEPARATOR_S "python"); |