On Sun, 8 Mar 2009 00:55:21 +0000 Chris Vine <ch...@cvine.freeserve.co.uk> wrote: [snip] > It would not be impossible (Gtk::Object enables it) to create the > Glib::Object wrapper (but only the wrapper) on the stack, but it is > ill-advised in a custom pure Glib::Object because it requires you to > fiddle with things which are not part of the public API for glibmm. It > is not impossible because at the C layer, the only differences > between a GObject and GtkObject are that (1) the former does not have > a floating reference but GtkObject does (it comes in fact from > GInitiallyUnowned) > - which you can convert to a normal reference anyway with > g_object_ref_sink(), and (2) GtkObject has a destroy signal which will > cause all GTK+ containers to release their references to the object.
By the way it is worth reading some of the GTK+ documentation as some of it is quite good. Here is the documentation on GtkObject which explains all this. http://library.gnome.org/devel/gtk/stable/GtkObject.html Chris _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list