summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-26 22:15:05 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-26 22:15:05 (GMT)
commit8ca477e012b11a19363542d171b8e973d637641c (patch)
tree94a4fcde1779f031946eff7a36075f41a17cd73b /plugins
parent4fb2ac107092671fe27fc3ebf9fc86dff7c3ec19 (diff)
Removed most of the functions using the editor items as global access to active items.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysa/arch/vmpa.c2
-rw-r--r--plugins/pychrysa/gui/editem.c83
2 files changed, 1 insertions, 84 deletions
diff --git a/plugins/pychrysa/arch/vmpa.c b/plugins/pychrysa/arch/vmpa.c
index 03434d7..8d42a78 100644
--- a/plugins/pychrysa/arch/vmpa.c
+++ b/plugins/pychrysa/arch/vmpa.c
@@ -504,7 +504,7 @@ void log_variadic_message(/*LogMessageType*/ int type, const char *fmt, ...)
void change_editor_items_current_view_content(void/*GtkDisplayPanel*/ *view)
{
-
+ /* FIXME */
}
diff --git a/plugins/pychrysa/gui/editem.c b/plugins/pychrysa/gui/editem.c
index 69b135d..a7e9206 100644
--- a/plugins/pychrysa/gui/editem.c
+++ b/plugins/pychrysa/gui/editem.c
@@ -58,9 +58,6 @@ static PyObject *py_editor_item_update_for_view(PyObject *, PyObject *);
/* Réagit à un changement d'affichage principal de contenu. */
static PyObject *py_editor_item_update_for_content(PyObject *, PyObject *);
-/* Fournit l'affichage de binaire courant. */
-static PyObject *py_editor_item_get_current_view(PyObject *, PyObject *);
-
/* Procède à l'enregistrement d'un élément reactif de l'éditeur. */
static PyObject *py_editor_item_register(PyObject *, PyObject *);
@@ -257,76 +254,6 @@ static PyObject *py_editor_item_update_for_content(PyObject *self, PyObject *arg
* Paramètres : self = classe représentant un binaire. *
* args = arguments fournis à l'appel. *
* *
-* Description : Fournit le gestionnaire du binaire courant. *
-* *
-* Retour : Instance en place ou Py_None si aucune. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static PyObject *py_editor_item_get_current_binary(PyObject *self, PyObject *args)
-{
- PyObject *result; /* Résultat à retourner */
- GEditorItem *item; /* Elément à manipuler */
- GLoadedBinary *binary; /* Instance à convertir */
-
- item = G_EDITOR_ITEM(pygobject_get(self));
- binary = g_editor_item_get_current_binary(item);
-
- if (binary == NULL)
- {
- Py_INCREF(Py_None);
- result = Py_None;
- }
- else
- result = pygobject_new(G_OBJECT(binary));
-
- return result;
-
-}
-
-
-/******************************************************************************
-* *
-* Paramètres : self = classe représentant un binaire. *
-* args = arguments fournis à l'appel. *
-* *
-* Description : Fournit l'affichage de binaire courant. *
-* *
-* Retour : Instance en place ou Py_None si aucune. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-
-static PyObject *py_editor_item_get_current_view(PyObject *self, PyObject *args)
-{
- PyObject *result; /* Résultat à retourner */
- GEditorItem *item; /* Elément à manipuler */
- GtkDisplayPanel *panel; /* Instance à convertir */
-
- item = G_EDITOR_ITEM(pygobject_get(self));
- panel = g_editor_item_get_current_view(item);
-
- if (panel == NULL)
- {
- Py_INCREF(Py_None);
- result = Py_None;
- }
- else
- result = pygobject_new(G_OBJECT(panel));
-
- return result;
-
-}
-
-
-/******************************************************************************
-* *
-* Paramètres : self = classe représentant un binaire. *
-* args = arguments fournis à l'appel. *
-* *
* Description : Procède à l'enregistrement d'un élément reactif de l'éditeur.*
* *
* Retour : - *
@@ -384,16 +311,6 @@ PyTypeObject *get_python_editor_item_type(void)
"Called by Chrysalide on each view content change, if the item is registered."
},
{
- "get_current_binary()", (PyCFunction)py_editor_item_get_current_binary,
- METH_NOARGS,
- "get_current_binary($self, /)\n--\n\nProvide the current binary."
- },
- {
- "get_current_view", (PyCFunction)py_editor_item_get_current_view,
- METH_NOARGS,
- "get_current_view($self, /)\n--\n\nProvide the current binary view."
- },
- {
"register", (PyCFunction)py_editor_item_register,
METH_NOARGS,
"register($self, /)\n--\n\nRegister the item as editor item."