[gtkmm] Re: Glib::RefPtr also for Widgets?
- From: Christof Petig <christof petig-baender de>
- To: Christof Petig <christof petig-baender de>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: [gtkmm] Re: Glib::RefPtr also for Widgets?
- Date: Fri, 20 Sep 2002 14:42:13 +0200
Christof Petig wrote:
1- Gtk::Foo *w = new Foo(); .... destroy w;
sorry, of course I meant "delete w;"
2- { Gtk::Foo w = Foo(); ... }
3- { Glib::RefPtr<Foo> w = manage(new Foo()); ... }
I found a fourth way:
4- { Gtk::Foo *w = manage(new Foo()); .... w->destroy(); }
but got the impression that destroy is disregarded as of gtkmm2.
Christof
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]