Reference counted widgets
- From: Tobias Schaper <egada gmx net>
- To: gtkmm-list gnome org
- Subject: Reference counted widgets
- Date: Thu, 14 Jan 2010 06:47:34 +0100
Hello,
Memory management with std::shared_ptr < Gtk::Widget > (or a similar
smart pointer that allows obtaining weak pointers, safe exception
handling etc.) would be nice. Then containers need to store smart
pointers too, so widgets won't get deleted when the instance in the
main program gets out of scope. And containers would not automatically
delete widgets when they are removed, but destroy the smart pointer.
What has happened to this idea?
See example and discussion at
http://mail.gnome.org/archives/gtkmm-list/2002-October/msg00072.html
Thanks,
Tobias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]