comp.lang.ada
 help / color / mirror / Atom feed
* Gtkada, Gtkada_Builder.Add_From_String problem.
@ 2016-08-08 13:24 George J
  2016-08-08 14:34 ` Dmitry A. Kazakov
  2016-08-09  3:10 ` George J
  0 siblings, 2 replies; 12+ messages in thread
From: George J @ 2016-08-08 13:24 UTC (permalink / raw)


Hi all! Today i've got a problem with Add_From_String method of Gtkada_Builder. I have an xml (GLADE) file, which loading fine with Add_From_File. So i've copied text in String var, and Add_From_String doesn't work. May be I don't know some feature of this method?

there are to examples i've made
1.
use ASCII;
UI_Str : String := 
     "<?xml version=""1.0"" encoding=""UTF-8""?>" &
     "<interface>" & 
     "<!-- interface-requires gtk+ 3.0 -->" & 
     "<object class=""GtkListStore"" id=""List_Store_Drives"">" & 
     "<columns>" &
     "<!-- column-name nm -->" &
     "<column type=""gchararray""/>" &
     "<!-- column-name sz -->" &............

2. 
use ASCII;
   
UI_Str : String := 
     "<?xml version=""1.0"" encoding=""UTF-8""?>" & LF & CR &
     "<interface>" & LF & CR & 
     "<!-- interface-requires gtk+ 3.0 -->" & LF & CR & 
     "<object class=""GtkListStore"" id=""List_Store_Drives"">" & LF & CR & 
     "<columns>" & LF & CR &
     "<!-- column-name nm -->" & LF & CR &
     "<column type=""gchararray""/>" & LF & CR &
     "<!-- column-name sz -->" & LF & CR &...........

Result:
..............
   if 0=Builder.Add_From_String(Buffer => UI.UI_Str,
                                Error  => Error'Access) then
      return;--  <--Comes here!!!!
   end if;

Hope smb can help. Thanks!


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-08-09  8:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 13:24 Gtkada, Gtkada_Builder.Add_From_String problem George J
2016-08-08 14:34 ` Dmitry A. Kazakov
2016-08-08 14:54   ` George J
2016-08-08 16:01     ` Dmitry A. Kazakov
2016-08-08 16:42       ` George J
2016-08-08 19:08         ` Dmitry A. Kazakov
2016-08-08 22:41           ` olivermkellogg
2016-08-09  3:08             ` George J
2016-08-09  8:06             ` Dmitry A. Kazakov
2016-08-09  3:00           ` George J
2016-08-09  3:10 ` George J
2016-08-09  3:40   ` George J

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox