[gtkada] libglade and Windows
Michael Bode
michael.bode at laserline.de
Thu Apr 28 09:00:36 CEST 2005
graphics at curts.mailshell.com schrieb:
> My experience thus far is the regeneration of the Ada code for the UI
> is not overly troublesome. Do your code generation a directory
> separate from your main source directory, then copy the <UI>_pkg.ads &
> .adb to your main source directory. Manually transfer any callback
> changes from the skeleton <UI>_pkg.callbacks.ads & .adb and
> callbacks_<UI>.ads to your customized versions.
>
I see. I will probably try to arrange my code in a way to make it easy
to switch between libglade and gate. For now I kind of like libglade and
thinks its disadvantages are acceptable. I could throw away the gate
main prodedure, use my own <UI>_mypkg.ads & .adb which with the
generated <UI>_pkg's and do my changes only in the <UI>_mypkg files. So
the difference between using gate and libglade would be calling Gtk_New
(XML,...) and then getting all the widgets I need from XML vs. calling
<UI>_pkg.Gtk_New(Window1). I will see what to do about callbacks.
--
Michael Bode
Laserline GmbH
Fraunhoferstr.
56218 Mülheim-Kärlich
Phone: +49 2630 964-2200
Fax: +49 2630 964-2209
More information about the gtkada
mailing list