Re: [[gtkmm] Destructor not called...]



Daniel Sundberg <dss home se> wrote:
> On Mon, 14 Oct 2002 14:30:56 +0100
> Murray Cumming <murrayc usa net> wrote:
> > Why do you expect them to be deleted? manage() causes child widgets to be
> > deleted when their containers are deleted. But they are no longer child
> > widgets if you remove them from the container.
> 
> Simply because the dtor gets called when I try the same with gtkmm-1.3.23. 

Then it was a bug that has been fixed.

> And why does the dtor get called when the contents of the vbox is 
> "declared" as a Gtk::Button* instead of a Gtk::Button (see test2.cc in
> my original post).

That doesn't sound right. Maybe you could submit actual test code in bugzilla.


Murray Cumming
murrayc usa net
www.murrayc.com




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