[gtkada] bad mapping for Get(Gtk.Label)?

briot at gnat.com briot at gnat.com
Thu Mar 9 10:11:29 CET 2000


 > Anyway, having said that, I'm not an Ada 95 guru (yet!), but the mapping
 > for Get(Gtk.Label) looks less than useful.  As far as I can tell, you need
 > to know in advance the length of String to allocate for it.

Nope, this is a classical Ada95 issue. Using Strings is more efficient is some
cases, here is how you can do:


begin
   --  whatever you need to do

   declare
     Text : String := Gtk.Label.Get (Label);
   begin
      --  use Text
   end;

   --  whatever you need to do
end;


Emmanuel





More information about the gtkada mailing list