summaryrefslogtreecommitdiff
path: root/src/gtkcodeview.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2008-11-10 01:28:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2008-11-10 01:28:23 (GMT)
commit12b4201890b4b2eefffaa6615b4b3076253dff6f (patch)
tree3756393810dc392658de2e05fc2589cbd119b2a8 /src/gtkcodeview.c
parent7c7109c1a8aaedea40af4b96d4b81d6ba4496226 (diff)
Shown/hidden virtual addresses / binary code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@41 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkcodeview.c')
-rw-r--r--src/gtkcodeview.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/gtkcodeview.c b/src/gtkcodeview.c
index 1062aaf..78d3b24 100644
--- a/src/gtkcodeview.c
+++ b/src/gtkcodeview.c
@@ -119,6 +119,66 @@ GtkWidget* gtk_codeview_new(void)
+/******************************************************************************
+* *
+* Paramètres : codeview = composant GTK à manipuler. *
+* show = état de l'affichage auquel parvenir. *
+* *
+* Description : Choisit d'afficher les adresses virtuelles ou non. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void gtk_codeview_show_vaddress(GtkCodeview *codeview, gboolean show)
+{
+ GList *list; /* Ensemble des enfants */
+ GList *iter; /* Boucle de parcours */
+
+ list = gtk_container_get_children(GTK_CONTAINER(codeview));
+
+ for (iter = g_list_first(list); iter != NULL; iter = g_list_next(iter))
+ gtk_snippet_show_vaddress(GTK_SNIPPET(iter->data), show);
+
+ g_list_free(list);
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : codeview = composant GTK à manipuler. *
+* show = état de l'affichage auquel parvenir. *
+* *
+* Description : Choisit d'afficher le code brut ou non. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void gtk_codeview_show_code(GtkCodeview *codeview, gboolean show)
+{
+ GList *list; /* Ensemble des enfants */
+ GList *iter; /* Boucle de parcours */
+
+ list = gtk_container_get_children(GTK_CONTAINER(codeview));
+
+ for (iter = g_list_first(list); iter != NULL; iter = g_list_next(iter))
+ gtk_snippet_show_code(GTK_SNIPPET(iter->data), show);
+
+ g_list_free(list);
+
+}
+
+
+
+
+
+
/******************************************************************************
* *