[gtkada] Help -- interfacing to new widgets

Srinivasan, Rajagopalan (IndSys, SalemVA) Rajagopalan.Srinivasan at indsys.ge.com
Wed Dec 20 00:18:25 CET 2000


folks,

Looking for some guidance :

I am trying to build Ada Interfaces to several Gtk widgets that i
downloaded. GtkExText is an example though I am shooting for the html
renderer from mozilla. I got the "C" code, got it compiled etc. Now I am
trying to hand translate the ".h" file into an Ada Spec etc using Gtk.Text
as an example.

Some things puzzle me :

-  There is an Object Hierarchy as implemented in the GtkAda. It is not
clear how this maps to the "struct" defined for each widget. Does it have to
at all?

- Looking at gtk.ads -- it appears that the user_data field in the "C" world
is used to store some sort of pointer to the Ada record. Is this true.

- Is it true that the handle returned eg Gtk_Text (access all
Gtk_Text_Record'Class) is really a pointer to the "C" structure?

Any help would be appreciated.

regards

srini

R. Srinivasan
General Electric Industrial Systems
Engineering Services
1501 Roanoke Boulevard
Salem, VA 24153
mailto:Rajagopalan.Srinivasan at IndSys.ge.com
Phone : (540) 387-7870 Dial-Comm : 278-7870





More information about the gtkada mailing list