summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/pynb/core-ui.c4
-rw-r--r--plugins/pynb/panel.c2
-rw-r--r--plugins/pynb/params.c2
-rw-r--r--plugins/pynb/prefs-int.h4
-rw-r--r--plugins/pynb/prefs.c34
-rw-r--r--plugins/pynb/prefs.h4
-rw-r--r--src/gui/dialogs/prefs/security-int.h4
-rw-r--r--src/gui/dialogs/prefs/security.c4
-rw-r--r--src/gui/panels/binary.c5
-rw-r--r--src/gui/panels/welcome.c3
-rw-r--r--src/plugins/pglist.c28
-rw-r--r--src/plugins/plugin.c2
12 files changed, 31 insertions, 65 deletions
diff --git a/plugins/pynb/core-ui.c b/plugins/pynb/core-ui.c
index 489284c..dd49a83 100644
--- a/plugins/pynb/core-ui.c
+++ b/plugins/pynb/core-ui.c
@@ -81,7 +81,7 @@ static tweak_info_t *g_python_notebook_plugin_ui_get_tweak_info(const GTweakable
/* ---------------------------------------------------------------------------------- */
-/* Indique le type défini pour un greffon de liaison Python */
+/* Indique le type défini pour une présentation de notes texte et code Python. */
G_DEFINE_TYPE_WITH_CODE(GPythonNotebookPluginUI, g_python_notebook_plugin_ui, G_TYPE_NATIVE_PLUGIN,
G_IMPLEMENT_INTERFACE(G_TYPE_TWEAKABLE_PLUGIN, g_python_notebook_plugin_ui_tweakable_plugin_interface_init));
@@ -350,7 +350,7 @@ static tweak_info_t *g_python_notebook_plugin_ui_get_tweak_info(const GTweakable
tweak_info_t infos[] = {
TWEAK_SIMPLE_DEF("root", "Basics",
- "pynb-symbolic", "pynotebook", "Notebook", GTK_TYPE_PYTHON_NOTEBOOK_PANEL_PANEL),
+ "pynb-symbolic", "pynotebook", "Notebook", GTK_TYPE_PYTHON_NOTEBOOK_TWEAK_PANEL),
};
*count = 1;
diff --git a/plugins/pynb/panel.c b/plugins/pynb/panel.c
index 1b4b3e3..8ce9cdb 100644
--- a/plugins/pynb/panel.c
+++ b/plugins/pynb/panel.c
@@ -62,7 +62,7 @@ static void gtk_python_notebook_panel_finalize(GObject *);
/* ---------------------------------------------------------------------------------- */
-/* Indique le type défini pour un panneau d'accueil. */
+/* Indique le type défini pour un panneau de présentation de notes. */
G_DEFINE_TYPE(GtkPythonNotebookPanel, gtk_python_notebook_panel, GTK_TYPE_TILED_PANEL);
diff --git a/plugins/pynb/params.c b/plugins/pynb/params.c
index 3a6bf70..690ff95 100644
--- a/plugins/pynb/params.c
+++ b/plugins/pynb/params.c
@@ -48,7 +48,7 @@ static void gtk_python_notebook_parameters_on_create_clicked(GtkButton *, GtkPyt
-/* Détermine le type du composant d'édition des paramètres de chargement. */
+/* Indique le type du composant d'édition des paramètres de chargement. */
G_DEFINE_TYPE(GtkPythonNotebookParameters, gtk_python_notebook_parameters, GTK_TYPE_GRID);
diff --git a/plugins/pynb/prefs-int.h b/plugins/pynb/prefs-int.h
index 9ce579e..9c44c68 100644
--- a/plugins/pynb/prefs-int.h
+++ b/plugins/pynb/prefs-int.h
@@ -29,14 +29,14 @@
-/* Fenêtre d'édition générale de la configuration (instance) */
+/* Composant d'édition des paramètres liés aux notes (instance) */
struct _GtkPythonNotebookTweakPanel
{
GtkBox parent; /* A laisser en premier */
};
-/* Fenêtre d'édition générale de la configuration (classe) */
+/* Composant d'édition des paramètres liés aux notes (classe) */
struct _GtkPythonNotebookTweakPanelClass
{
GtkBoxClass parent; /* A laisser en premier */
diff --git a/plugins/pynb/prefs.c b/plugins/pynb/prefs.c
index 952f6c8..9363e9b 100644
--- a/plugins/pynb/prefs.c
+++ b/plugins/pynb/prefs.c
@@ -1,6 +1,6 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
- * prefs.h - configuration des paramètres liés aux notes
+ * prefs.c - configuration des paramètres liés aux notes
*
* Copyright (C) 2025 Cyrille Bagard
*
@@ -32,21 +32,21 @@
/* Procède à l'initialisation de classe des configurations. */
-static void gtk_python_notebook_panel_panel_class_init(GtkPythonNotebookTweakPanelClass *);
+static void gtk_python_notebook_tweak_panel_class_init(GtkPythonNotebookTweakPanelClass *);
/* Procède à l'initialisation des configurations de sécurité. */
-static void gtk_python_notebook_panel_panel_init(GtkPythonNotebookTweakPanel *);
+static void gtk_python_notebook_tweak_panel_init(GtkPythonNotebookTweakPanel *);
/* Supprime toutes les références externes. */
-static void gtk_python_notebook_panel_panel_dispose(GObject *);
+static void gtk_python_notebook_tweak_panel_dispose(GObject *);
/* Procède à la libération totale de la mémoire. */
-static void gtk_python_notebook_panel_panel_finalize(GObject *);
+static void gtk_python_notebook_tweak_panel_finalize(GObject *);
-/* Détermine le type du composant de configuration des notes. */
-G_DEFINE_TYPE(GtkPythonNotebookTweakPanel, gtk_python_notebook_panel_panel, GTK_TYPE_BOX);
+/* Indique le type du composant de configuration des notes. */
+G_DEFINE_TYPE(GtkPythonNotebookTweakPanel, gtk_python_notebook_tweak_panel, GTK_TYPE_BOX);
/******************************************************************************
@@ -61,15 +61,15 @@ G_DEFINE_TYPE(GtkPythonNotebookTweakPanel, gtk_python_notebook_panel_panel, GTK_
* *
******************************************************************************/
-static void gtk_python_notebook_panel_panel_class_init(GtkPythonNotebookTweakPanelClass *class)
+static void gtk_python_notebook_tweak_panel_class_init(GtkPythonNotebookTweakPanelClass *class)
{
GObjectClass *object; /* Plus haut niveau équivalent */
GtkWidgetClass *widget; /* Classe de haut niveau */
object = G_OBJECT_CLASS(class);
- object->dispose = gtk_python_notebook_panel_panel_dispose;
- object->finalize = gtk_python_notebook_panel_panel_finalize;
+ object->dispose = gtk_python_notebook_tweak_panel_dispose;
+ object->finalize = gtk_python_notebook_tweak_panel_finalize;
widget = GTK_WIDGET_CLASS(class);
@@ -77,7 +77,7 @@ static void gtk_python_notebook_panel_panel_class_init(GtkPythonNotebookTweakPan
/* Stockage sécurisé */
- //gtk_widget_class_bind_template_callback_full(widget, BUILDER_CB(gtk_python_notebook_panel_panel_on_new_passwords_changed));
+ //gtk_widget_class_bind_template_callback_full(widget, BUILDER_CB(gtk_python_notebook_tweak_panel_on_new_passwords_changed));
//gtk_widget_class_bind_template_child(widget, GtkPythonNotebookTweakPanel, current_primary_passwd);
@@ -96,7 +96,7 @@ static void gtk_python_notebook_panel_panel_class_init(GtkPythonNotebookTweakPan
* *
******************************************************************************/
-static void gtk_python_notebook_panel_panel_init(GtkPythonNotebookTweakPanel *panel)
+static void gtk_python_notebook_tweak_panel_init(GtkPythonNotebookTweakPanel *panel)
{
gtk_widget_init_template(GTK_WIDGET(panel));
@@ -115,11 +115,11 @@ static void gtk_python_notebook_panel_panel_init(GtkPythonNotebookTweakPanel *pa
* *
******************************************************************************/
-static void gtk_python_notebook_panel_panel_dispose(GObject *object)
+static void gtk_python_notebook_tweak_panel_dispose(GObject *object)
{
- gtk_widget_dispose_template(GTK_WIDGET(object), GTK_TYPE_PYTHON_NOTEBOOK_PANEL_PANEL);
+ gtk_widget_dispose_template(GTK_WIDGET(object), GTK_TYPE_PYTHON_NOTEBOOK_TWEAK_PANEL);
- G_OBJECT_CLASS(gtk_python_notebook_panel_panel_parent_class)->dispose(object);
+ G_OBJECT_CLASS(gtk_python_notebook_tweak_panel_parent_class)->dispose(object);
}
@@ -136,8 +136,8 @@ static void gtk_python_notebook_panel_panel_dispose(GObject *object)
* *
******************************************************************************/
-static void gtk_python_notebook_panel_panel_finalize(GObject *object)
+static void gtk_python_notebook_tweak_panel_finalize(GObject *object)
{
- G_OBJECT_CLASS(gtk_python_notebook_panel_panel_parent_class)->finalize(object);
+ G_OBJECT_CLASS(gtk_python_notebook_tweak_panel_parent_class)->finalize(object);
}
diff --git a/plugins/pynb/prefs.h b/plugins/pynb/prefs.h
index 9a20281..6551983 100644
--- a/plugins/pynb/prefs.h
+++ b/plugins/pynb/prefs.h
@@ -32,9 +32,9 @@
-#define GTK_TYPE_PYTHON_NOTEBOOK_PANEL_PANEL (gtk_python_notebook_panel_panel_get_type())
+#define GTK_TYPE_PYTHON_NOTEBOOK_TWEAK_PANEL (gtk_python_notebook_tweak_panel_get_type())
-DECLARE_GTYPE(GtkPythonNotebookTweakPanel, gtk_python_notebook_panel_panel, GTK, PYTHON_NOTEBOOK_PANEL_PANEL);
+DECLARE_GTYPE(GtkPythonNotebookTweakPanel, gtk_python_notebook_tweak_panel, GTK, PYTHON_NOTEBOOK_TWEAK_PANEL);
diff --git a/src/gui/dialogs/prefs/security-int.h b/src/gui/dialogs/prefs/security-int.h
index c693fdb..be7867c 100644
--- a/src/gui/dialogs/prefs/security-int.h
+++ b/src/gui/dialogs/prefs/security-int.h
@@ -30,7 +30,7 @@
-/* Fenêtre d'édition générale de la configuration (instance) */
+/* Composant d'édition des paramètres de sécurité (instance) */
struct _GtkSecurityTweakPanel
{
GtkBox parent; /* A laisser en premier */
@@ -52,7 +52,7 @@ struct _GtkSecurityTweakPanel
};
-/* Fenêtre d'édition générale de la configuration (classe) */
+/* Composant d'édition des paramètres de sécurité (classe) */
struct _GtkSecurityTweakPanelClass
{
GtkBoxClass parent; /* A laisser en premier */
diff --git a/src/gui/dialogs/prefs/security.c b/src/gui/dialogs/prefs/security.c
index cf2f6c8..2b82339 100644
--- a/src/gui/dialogs/prefs/security.c
+++ b/src/gui/dialogs/prefs/security.c
@@ -1,6 +1,6 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
- * security.h - configuration des paramètres liés à la sécurité
+ * security.c - configuration des paramètres liés à la sécurité
*
* Copyright (C) 2025 Cyrille Bagard
*
@@ -82,7 +82,7 @@ static void gtk_security_tweak_panel_on_remove_password_clicked(GtkButton *, Gtk
/* ---------------------------------------------------------------------------------- */
-/* Détermine le type du composant d'affichage générique. */
+/* Indique le type du composant d'édition des paramètres de sécurité. */
G_DEFINE_TYPE(GtkSecurityTweakPanel, gtk_security_tweak_panel, GTK_TYPE_BOX);
diff --git a/src/gui/panels/binary.c b/src/gui/panels/binary.c
index bb98c10..f58c06b 100644
--- a/src/gui/panels/binary.c
+++ b/src/gui/panels/binary.c
@@ -25,9 +25,6 @@
#include "binary.h"
-#include <i18n.h>
-
-
#include "binary-int.h"
#include "../../gtkext/helpers.h"
#include "../../gtkext/hexview.h"
@@ -63,7 +60,7 @@ static void gtk_binary_panel_finalize(GObject *);
/* ---------------------------------------------------------------------------------- */
-/* Indique le type défini pour un panneau d'accueil. */
+/* Indique le type défini pour un panneau d'affichage de contenus d'un binaire. */
G_DEFINE_TYPE(GtkBinaryPanel, gtk_binary_panel, GTK_TYPE_TILED_PANEL);
diff --git a/src/gui/panels/welcome.c b/src/gui/panels/welcome.c
index 6fd1304..6e8763b 100644
--- a/src/gui/panels/welcome.c
+++ b/src/gui/panels/welcome.c
@@ -28,9 +28,6 @@
#include <assert.h>
-#include <i18n.h>
-
-
#include "welcome-int.h"
#include "../core/panels.h"
#include "../../common/shuffle.h"
diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c
index 6dc2d9c..3e107b8 100644
--- a/src/plugins/pglist.c
+++ b/src/plugins/pglist.c
@@ -344,22 +344,10 @@ static void browse_directory_for_plugins(const char *dir)
else
{
-
- printf("// Candidate // %s\n", filename);
-
has_alt = check_for_plugin_versions(dir, namelist[k]->d_name, &is_nox, &is_ui);
- printf(" -> nox=%d ui=%d -> alt? %d\n", is_nox, is_ui, has_alt);
-
-
if ((nox_mode && is_nox) || (!nox_mode && ((is_nox && !has_alt) || is_ui)))
{
-
-
- printf(" ---> load!\n");
-
-
-
module = g_module_open(filename, G_MODULE_BIND_LAZY);
if (module == NULL)
{
@@ -369,32 +357,18 @@ static void browse_directory_for_plugins(const char *dir)
goto next_file;
}
-
- printf(" (main) module=%p '%s'\n", module, g_module_name(module));
-
+ get_instance = NULL;
if (!g_module_symbol(module, "get_chrysalide_plugin_instance", (gpointer *)&get_instance))
- {
log_variadic_message(LMT_ERROR,
_("No '%s' entry in plugin candidate '%s'"),
"<sym>", filename);
-
-
- }
-
-
if (get_instance == NULL)
plugin = NULL;
else
plugin = get_instance(module);
-
-
- printf(" ===> plugin: %p\n", plugin);
-
-
-
if (plugin != NULL)
{
register_plugin(plugin);
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index b7f85d5..dfdf3ed 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -196,8 +196,6 @@ static void g_plugin_module_finalize(GPluginModule *plugin)
{
size_t i; /* Boucle de parcours */
- printf("[!!!] Finalizing plugin %s\n", plugin->name);
-
if (plugin->name != NULL)
free(plugin->name);