[gtkada] Tags and Text Colours?

Emmanuel Briot briot at act-europe.fr
Thu Jun 5 16:32:04 CEST 2003


> Does GtkAda come with any lists or structures for keeping widgets in? 
> Like a collection of widgets?  The problem requires that widgets be 
> created on the fly, then pulled out on the fly if need be.  I was 
> thinking of subclassing gtk_widget and creating a widget_collection that 
> would store widget, name pairs and use the name to get the right 
> widgets.  Has anyone done anything like this?

Any container will do. Just think of Ref'ing the widget when you put it
in the container, and Unref'ing it when you remove it.
You can still use Gtk.Widget.Widget_List otherwise.

Emmanuel



More information about the gtkada mailing list