diff options
Diffstat (limited to 'src/gtkcodeview.c')
-rw-r--r-- | src/gtkcodeview.c | 60 |
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); + +} + + + + + + /****************************************************************************** * * |