[gtkada] Patch for String_List in Gtk.enums - Going in

Emmanuel Briot briot at ACT-Europe.FR
Fri Sep 7 11:33:54 CEST 2001


Jeff Creem writes:
 > On Mon, 20 Aug 2001 22:00:35 -0400 I sent a message with a patch for some
 > additional
 > features for the instance of glist for string types. No comments gripes or
 > complaints
 > were posted in response.
 > 
 > Any chance this is going to go in to the CVS tree or is it a bad idea?


Jeff,

I thought your mail had been answered already.
Anyway: we are not really interested in putting new Ada functions in glib
itself. GtkAda is mostly a binding after all, and we have tried to use these
low-level lists only for the binding part (C functions returning such a list
for instance). All the new widgets that were written directly in Ada use their
own lists.

It might be interesting to put your functions in a separate package, and maybe
this could go into the contrib/ directory of the GtkAda distribution. I'll
discuss this with the other GtkAda developpers.

However, one other thing that might be interesting to investigate: it seems
that the binding to glist.h is incomplete. In particular, a quick look at it
shows that the C version has the following functions:

 GList*   g_list_delete_link    (GList            *list,
                                 GList            *link);

which might (or not :-) do what you want.

I think it would be more interesting (and easier to maintain) to enhance the
binding itself rather than writing some Ada functions for that.


regards,
Emmanuel




More information about the gtkada mailing list