[gtkada] Addressing external data in a GUI

Preben Randhol randhol+gtkada at pvv.org
Tue May 31 08:51:38 CEST 2005


On Tue, May 31, 2005 at 02:41:33PM +0800, Rick Duley wrote:
> Hi folks
> 
> I think the penny might just have dropped.
> 
> GtkAda imports C routines.  Therefore: the only way to address data
> from (say) callbacks is to have a public (global in C) access type
> (pointer in C) to the data visible to the callback.  In other words,
> write Ada code to pull C tricks!
> 
> Is this right? 

Not sure what you want to do. Why do you want to pass data through
callbacks?


-- 
Preben Randhol -------------- http://www.pvv.org/~randhol/Ada95 --
                 «For me, Ada95 puts back the joy in programming.»



More information about the gtkada mailing list