From e0614e482b3ca3faf43e296bb70348be0d651394 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sun, 23 Feb 2025 00:32:51 +0100
Subject: Update comments and fix code.

---
 plugins/pynb/core-ui.c               |  4 ++--
 plugins/pynb/prefs-int.h             |  4 ++--
 plugins/pynb/prefs.c                 | 34 +++++++++++++++++-----------------
 plugins/pynb/prefs.h                 |  4 ++--
 src/gui/dialogs/prefs/security-int.h |  4 ++--
 src/gui/dialogs/prefs/security.c     |  4 ++--
 6 files changed, 27 insertions(+), 27 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/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);
 
 
-- 
cgit v0.11.2-87-g4458