[gtkada] Severe bug with Gtk_Tree_Iter

Dmitry A. Kazakov mailbox at dmitry-kazakov.de
Mon Oct 20 10:10:15 CEST 2014


On Mon, 20 Oct 2014 10:01:46 +0200, you wrote:

>>> My proposal is to initialize all intermediate Gtk_Tree_Iter objects
>>> with
>>> Null_Iter throughout GtkAda. It is a lot of places, but I guess it should
>>> be possible to adjust the API generation script to make this
>>> automatically.
>> 
>> It makes sense to me.
> 
> Or laternatively we could add default init value on the declaration of
> Gtk_Tree_Iter itself which would take care of user declarations as well:
> 
> type Gtk_Tree_Iter is record
>    Stamp : Gint := 0;
>    User_Data : System.Address := System.Null_Address;
>    User_Data2 : System.Address := System.Null_Address;
>    User_Data3 : System.Address := System.Null_Address;
> end record;

Yes! This is much simpler and safer.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


More information about the gtkada mailing list