[Glade-users] Best Practice for Glade.XML - open/close new window



Travis Staloch wrote:
[...]

3. When I want to show a window, using:
 wnd = (Gtk.Window)gxml.GetWidget(sWindowName);
 gxml.Autoconnect(this);
 wnd.Visible = true;
 

I might be reading your code wrong, but it looks like you
are connecting signals every time you show the window...
remember that the signals arent disconnected just because
you close a window... so handlers could start to be called
more than once for a given event...

Cheers,
                                -Tristan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]