[Gtk-sharp-list] glade autoconnect strangeness
Adam Lydick
lydickaw@ruffledpenguin.org
Fri, 14 Jan 2005 03:16:49 -0800
I noticed some strange behavior with Glade# (libglade-cil , version
1.0.4).
If I wire up widget references with .Autoconnect from more than one
top-level widget to a single class, the second instance seems to clobber
the mappings of the previous one. (eg: the old references are set to
"null" before the first .Autoconnect and after the second, but not after
the first.)
Am I imagining things? Or is this how it is supposed to work?
A snippit of my broken code follows:
//load winMain
//my [Glade.Widget] instanceVar is null here.
Glade.XML gxml =
new Glade.XML (null, "cashflow.glade", "winMain", null);
gxml.Autoconnect (this);
//my [Glade.Widget] instanceVar is NOT null here.
//FIXME: glade clobbers old autoconnected entries on the 2nd pass...
//load winDateRange (a popup window on winMain)
//gxml = new Glade.XML (null, "cashflow.glade", "winDateRange", null);
//gxml.Autoconnect(this);
//my [Glade.Widget] instanceVar is null here, if not used by
winDateRange
Thanks again,
--
Adam Lydick <lydickaw@ruffledpenguin.org>