diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-05-15 19:27:41 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-05-15 20:04:27 (GMT) |
commit | 9e5cf9b3383adcb08ce4a334e19bf02dafe5771a (patch) | |
tree | b9da58b4c2213ba582ecd94b488826de2faeed7b /plugins/pychrysalide/plugins | |
parent | f252166690f537cdf6853e45a6dc21ed058d0360 (diff) |
Rebuild an empty Python module.
Diffstat (limited to 'plugins/pychrysalide/plugins')
-rw-r--r-- | plugins/pychrysalide/plugins/plugin.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/plugins/pychrysalide/plugins/plugin.c b/plugins/pychrysalide/plugins/plugin.c index b013345..de070cb 100644 --- a/plugins/pychrysalide/plugins/plugin.c +++ b/plugins/pychrysalide/plugins/plugin.c @@ -74,6 +74,8 @@ static PyObject *py_plugin_module_get_modname_by_default(PyObject *, PyObject *) /* Fournit le nom brut associé au greffon. */ static char *py_plugin_module_get_modname_wrapper(const GPluginModule *); +#if 0 + #ifdef INCLUDE_GTK_SUPPORT /* Complète une liste de resources pour thème. */ @@ -108,6 +110,8 @@ static void py_plugin_module_process_disassembly_event_wrapper(const GPluginModu /* Effectue la détection d'effets d'outils externes. */ static void py_plugin_module_detect_external_tools_wrapper(const GPluginModule *, PluginAction, const GLoadedContent *, bool, char ***, size_t *); +#endif + /* ------------------------- MODULE PYTHON POUR LES SCRIPTS ------------------------- */ @@ -158,6 +162,8 @@ static void py_plugin_module_init_gclass(GPluginModuleClass *class, gpointer unu class->get_modname = py_plugin_module_get_modname_wrapper; +#if 0 + #ifdef INCLUDE_GTK_SUPPORT class->include_theme = py_plugin_module_include_theme_wrapper; class->notify_panel = py_plugin_module_notify_panel_creation_wrapper; @@ -175,6 +181,8 @@ static void py_plugin_module_init_gclass(GPluginModuleClass *class, gpointer unu class->detect = py_plugin_module_detect_external_tools_wrapper; +#endif + } @@ -609,6 +617,8 @@ static char *py_plugin_module_get_modname_wrapper(const GPluginModule *plugin) } +#if 0 + #ifdef INCLUDE_GTK_SUPPORT @@ -1359,6 +1369,7 @@ static void py_plugin_module_detect_external_tools_wrapper(const GPluginModule * } +#endif /* ---------------------------------------------------------------------------------- */ @@ -1598,7 +1609,7 @@ static PyObject *py_plugin_module_get_interface(PyObject *self, void *closure) } - +#if 0 /****************************************************************************** * * * Paramètres : self = objet Python concerné par l'appel. * @@ -1652,6 +1663,7 @@ static PyObject *py_plugin_module_get_config(PyObject *self, void *closure) return result; } +#endif /****************************************************************************** @@ -1672,6 +1684,7 @@ PyTypeObject *get_python_plugin_module_type(void) PLUGIN_MODULE_MANAGE_WRAPPER, PLUGIN_MODULE_NOTIFY_PLUGINS_LOADED_WRAPPER, PLUGIN_MODULE_GET_MODNAME_WRAPPER, +#if 0 #ifdef INCLUDE_GTK_SUPPORT PLUGIN_MODULE_INCLUDE_THEME_WRAPPER, PLUGIN_MODULE_ON_PANEL_CREATION_WRAPPER, @@ -1685,6 +1698,7 @@ PyTypeObject *get_python_plugin_module_type(void) PLUGIN_MODULE_PROCESS_DISASSEMBLY_EVENT_WRAPPER, PLUGIN_MODULE_DETECT_EXTERNAL_TOOLS_WRAPPER, PLUGIN_MODULE_BUILD_CONFIG_FILENAME_METHOD, +#endif PLUGIN_MODULE_LOG_MESSAGE_METHOD, { NULL } }; @@ -1693,7 +1707,7 @@ PyTypeObject *get_python_plugin_module_type(void) PLUGIN_MODULE_MODNAME_ATTRIB, PLUGIN_MODULE_FILENAME_ATTRIB, PLUGIN_MODULE_INTERFACE_ATTRIB, - PLUGIN_MODULE_CONFIG_ATTRIB, + //PLUGIN_MODULE_CONFIG_ATTRIB, { NULL } }; |