From fc010082fcc5371ff198b5b3321eb81fbe2a6013 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Mon, 8 Oct 2018 01:15:13 +0200
Subject: Cleaned code.

---
 plugins/pychrysalide/pychrysa.c |  2 +-
 plugins/pychrysalide/pychrysa.h | 52 +++--------------------------------------
 2 files changed, 4 insertions(+), 50 deletions(-)

diff --git a/plugins/pychrysalide/pychrysa.c b/plugins/pychrysalide/pychrysa.c
index c6a114f..742805d 100644
--- a/plugins/pychrysalide/pychrysa.c
+++ b/plugins/pychrysalide/pychrysa.c
@@ -264,7 +264,7 @@ static bool set_version_for_gtk_namespace(const char *version)
 
     if (gi_mod != NULL)
     {
-        args = Py_BuildValue("ss", "Gtk", "3.0");
+        args = Py_BuildValue("ss", "Gtk", version);
 
         run_python_method(gi_mod, "require_version", args);
 
diff --git a/plugins/pychrysalide/pychrysa.h b/plugins/pychrysalide/pychrysa.h
index ef5c545..da9913b 100644
--- a/plugins/pychrysalide/pychrysa.h
+++ b/plugins/pychrysalide/pychrysa.h
@@ -21,8 +21,8 @@
  */
 
 
-#ifndef _PLUGINS_PYCHRYSALIDE_H
-#define _PLUGINS_PYCHRYSALIDE_H
+#ifndef _PLUGINS_PYCHRYSALIDE_PYCHRYSA_H
+#define _PLUGINS_PYCHRYSALIDE_PYCHRYSA_H
 
 
 /**
@@ -35,52 +35,6 @@
 #include <Python.h>
 
 
-
-
-
-
-#if 0
-
-
-#include <glib-object.h>
-#include <stdbool.h>
-
-
-#include "plugin.h"
-
-
-
-/* Précise le nom associé au greffon. */
-char *get_plugin_name(void);
-
-/* Initialise le greffon permettant l'usage de Python. */
-bool init_plugin(GPluginModule *, GObject *);
-
-/* Libère le greffon permettant l'usage de Python. */
-void exit_plugin(GPluginModule *);
-
-/* Indique les opérations offertes par un greffon donné. */
-PluginAction get_plugin_action(const GPluginModule *);
-
-
-#if PY_VERSION_HEX >= 0x03000000
-
-/* Point d'entrée pour l'initialisation de Python. */
-//PyMODINIT_FUNC PyInit_pychrysa(void);
-PyMODINIT_FUNC initpychrysa(void);
-
-#else
-
-/* Point d'entrée pour l'initialisation de Python. */
-PyMODINIT_FUNC initpychrysa(void);
-
-#endif
-
-#endif
-
-
-
-
 #include <plugins/plugin.h>
 
 
@@ -99,4 +53,4 @@ PyThreadState *get_pychrysalide_main_tstate(void);
 
 
 
-#endif  /* _PLUGINS_PYCHRYSALIDE_H */
+#endif  /* _PLUGINS_PYCHRYSALIDE_PYCHRYSA_H */
-- 
cgit v0.11.2-87-g4458