[gtkada] Gtk.Containers and derived types
Fraser Wilson
blancolioni at gmail.com
Wed Aug 24 09:23:52 CEST 2011
I guess you're using
Gtk.Container.Remove (Box, Item);
In Ada 95, this should be
Gtk.Box.Remove (Box, Item);
In Ada 2005, just use
Box.Remove (Item);
(The box Remove procedure is implicitly declared in Gtk.Box, which is why
you get this correct, but unhelpful, error message).
cheers,
Fraser.
On 23 August 2011 22:05, Tony Gair <tony at bmshome.org> wrote:
>
> I'm trying to use the procedure Gtk.Container.Remove on a hbox container
> and I get a compiler error because it is expecting a Gtk.Container access
> type rather than the Hbox I try to use in the parameter.
>
> <b>120:59</b> expected an access type with designated private type
> "Gtk_Container_Record&**quot; defined at gtk-container.ads:44 Builder
> results000120
>
> <b> </b> found an access type with designated type
> "Gtk_Hbox" defined at <span color="blue"><u>gtk-box.ads:**67</u></span>
> Builder results000067
>
> Is there a way to reference the container part of the hbox so I can remove
> the widget
>
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/gtkada/attachments/20110824/3edfc266/attachment.htm
More information about the gtkada
mailing list