[gtkada] Widget for DOM

Emmanuel Briot briot at ACT-Europe.FR
Fri Dec 21 11:24:45 CET 2001


Christophe Baillon <cbaillon at ifrance.com> writes:

> I have written a simple widget in Gtkada in fact to
> view a DOM tree of an Xml document. (GtkDOM)


Pour information:

Il compile sans probleme avec GNAT 3.14 et GNAT 3.15.

Par contre, ca ne marchera plus avec GtkAda 2.x, puisque les auteurs de gtk+ on
rendu gtk.tree obsolete.
Il vaut mieux utiliser gtk.ctree, qui permet en plus d'afficher des icones dans
l'arbre, donc c'est beaucoup plus joli...

Je n'ai pas verifie pourquoi, mais il arrive que le champ "Value" soit rempli
avec des carres, comme si GtkAda/gtk+ ne pouvais pas afficher le texte. Je l'ai
vu notamment sur test3.xml dans la distribution de GtkDOM.

Une bonne nouvelle: le Makefile pourra etre simplifie avec XmlAda 0.7, ou il
devient:



---------------------------------------
OPTIONS=-g `xmlada-config --cflags` `gtkada-config` `xmlada-config --libs`

OBJ_FILES=*.o *.ali dom_test

dom_test : dom_test.adb gtk-dom_gui.ads gtk-dom_gui.adb
        gnatmake dom_test.adb $(OPTIONS)


verbose : dom_test.adb gtk-dom_gui.ads gtk-dom_gui.adb
        gnatmake dom_test.adb -gnatf $(OPTIONS)

static : dom_test.adb gtk-dom_gui.ads gtk-dom_gui.adb
        gnatmake -static dom_test.adb $(OPTIONS)


clean :
        rm -f $(OBJ_FILES)
---------------------------------------------


Manu




More information about the gtkada mailing list