diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2025-02-22 23:32:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2025-02-22 23:32:51 (GMT) |
commit | e0614e482b3ca3faf43e296bb70348be0d651394 (patch) | |
tree | e1f3f9c9fcf3ff3605d7b71b50a42619768a8b4f /plugins | |
parent | 1198887f998ac1c09d4e42a9aed937b6c1b31e56 (diff) |
Update comments and fix code.gtk4
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/pynb/core-ui.c | 4 | ||||
-rw-r--r-- | plugins/pynb/prefs-int.h | 4 | ||||
-rw-r--r-- | plugins/pynb/prefs.c | 34 | ||||
-rw-r--r-- | plugins/pynb/prefs.h | 4 |
4 files changed, 23 insertions, 23 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); |