summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-07 22:16:14 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-07 22:16:14 (GMT)
commit5a85f3d6ee1d6121c0f7bec0eceb677179f5b3de (patch)
treeb54596759841683f3c6fa625a23ce248b72684c9 /plugins/pychrysalide/gtkext
parent648bf475951e6d588d13539441d8a0e54eab2706 (diff)
Cleaned code.
Diffstat (limited to 'plugins/pychrysalide/gtkext')
-rw-r--r--plugins/pychrysalide/gtkext/displaypanel.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/plugins/pychrysalide/gtkext/displaypanel.c b/plugins/pychrysalide/gtkext/displaypanel.c
index ddcd654..bcda60c 100644
--- a/plugins/pychrysalide/gtkext/displaypanel.c
+++ b/plugins/pychrysalide/gtkext/displaypanel.c
@@ -25,7 +25,6 @@
#include "displaypanel.h"
-#include <string.h>
#include <pygobject.h>
@@ -34,63 +33,9 @@
#include "../access.h"
#include "../helpers.h"
-#include "../arch/vmpa.h"
-/* Crée un nouvel objet Python de type 'DisplayPanel'. */
-#if 0
-static PyObject *py_display_panel_new(PyTypeObject *, PyObject *, PyObject *);
-#endif
-
-
-
-/******************************************************************************
-* *
-* Paramètres : type = type de l'objet à instancier. *
-* args = arguments fournis à l'appel. *
-* kwds = arguments de type key=val fournis. *
-* *
-* Description : Crée un nouvel objet Python de type 'DisplayPanel'. *
-* *
-* Retour : Instance Python mise en place. *
-* *
-* Remarques : - *
-* *
-******************************************************************************/
-#if 0
-static PyObject *py_display_panel_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
-{
-#if 0
- PyObject *result; /* Instance à retourner */
- const char *name; /* Désignation humaine */
- const char *lname; /* Nom version longue */
- PyGObject *widget; /* Composant visuel du panneau */
- const char *path; /* Placement à l'affichage */
- int ret; /* Bilan de lecture des args. */
- GEditorItem *item; /* Version GLib du format */
-
- ret = PyArg_ParseTuple(args, "ssOs", &name, &lname, &widget, &path);
- if (!ret) Py_RETURN_NONE;
-
- item = g_view_panel_new(name, lname,
- GTK_WIDGET(pygobject_get(widget)), path);
-
- result = py_display_panel_from_c(G_DISPLAY_PANEL(item));
- g_object_unref(item);
-
- return (PyObject *)result;
-#endif
-
- /* FIXME */
-
-
- Py_RETURN_NONE;
-
-}
-#endif
-
-
/******************************************************************************
* *
* Paramètres : - *
@@ -126,8 +71,6 @@ PyTypeObject *get_python_display_panel_type(void)
.tp_methods = py_display_panel_methods,
.tp_getset = py_display_panel_getseters,
- //.tp_new = py_display_panel_new,
- //.tp_init = (initproc)pychrysalide_allow_args_for_gobjects
};