Loading gdl layout from file

Thomas Dybdahl Ahle <[email protected]>
Newsgroups gmane.comp.gnome.devtools
Message-ID <[email protected]>
Hi, I'm trying to understand this gdl. Mostly from the anjuta, scaffold
and screem sourcecodes.

I have a problem with getting the loading from file working.

If I do:

dock = gdl.Dock()
layout = gdl.DockLayout(dock)
item = gdl.DockItem("board", "Board", None, gdl.DOCK_ITEM_BEH_NO_GRIP)
item.add(gtk.Label("..."))
dock.add_item(item, gdl.DOCK_LEFT)

everything works fine,
but if I add:

layout.save_layout("__default__")
layout.save_to_file("/home/thomas/layout.xml")
layout.load_from_file("/home/thomas/layout.xml")
layout.load_layout("__default__")

suddently item.parrent == None and nothing appears in my window.

I've added tons of shows and show_alls, but the problem seams to be,
that the item is no longer attached to the dock. If I do
dock.get_children() I get an empty list.

Do anybody know how to overcome this?

-- 
Best Regards,
Med Venlig Hilsen,
Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.