[gtkada] Gtk.List_Store.Swap
Jan de Kruyf
jan.de.kruyf at gmail.com
Mon May 6 18:37:15 CEST 2013
Hallo again,
Sorry to jump the queue and answer my own questions:
I think I vaguely found the cause of my problems, but I cannot devine the
scientific explanation.
Perhaps someone on the list might be able to.
to wit:
This broke the program:
" Model : Gtk.List_Store.Gtk_List_Store; "
Allthough a record address was assigned to it in
Gtk.Tree_Selection.Get_Selected_Rows
(Selection => Selection,
Model => Gtk.Tree_Model.Gtk_Tree_Model (Model),
Path_List => Rows);
This fixes the problem:
" Model : access Gtk.List_Store.Gtk_List_Store_Record; "
but only if it is declared at package level, at subprogram level Gnat
complains:
" cannot convert local pointer to non-local access type "
when I try to do a type conversion to the parent type.
Would someone be so kind and expand on this. Is it a Gnat restriction, is
it an Ada restriction?
Thanks,
j.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gtkada/attachments/20130506/e215f444/attachment.html>
More information about the gtkada
mailing list