Loading gdl layout from file
- From: Thomas Dybdahl Ahle <lobais gmail com>
- To: gnome-devtools gnome org
- Subject: Loading gdl layout from file
- Date: Tue, 19 Feb 2008 23:18:36 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]