31 Mar
2014
31 Mar
'14
5:30 p.m.
2014-03-31 17:08 GMT+02:00 Markus Engel <p637777@...1081...>:
Hi, if you used references or pointers, where would you get the actual widgets from? "newing" them? Then please make sure that every single widget is correctly deleted no matter what happens. You probably don't want to do that.
With Gtk::manage() this task is actually rather simple - the widget is deleted automatically when its container is deleted. You just need to make sure you don't create any orphan widgets which are not actually added to any container.
That being said, I'm not sure if there is a compelling reason to change from one approach to the other.
Regards, Krzysztof