Re: [gtkmm] Glib::RefPtr construction

Daniel Elstner wrote:
On Mit, 2003-01-08 at 18:51, Michael Johnson wrote:
The current implementation works by keeping the GTK+ object alive at
least as long as there are references to the C++ object. That should
remain the case in the implementation I described, but hopefully in a
greatly simplified manner.

GObject might be simple to deal with, but GtkObject refcounting
semantics are from hell.  Yes, you could theorhetically make GtkObject
behave like GObject by reffing and sinking it.  But GTK+ code seems to
acquire references that are only dropped on gtk_object_destroy().  Also
see the GtkWindow and GtkInvisible behaviour for more sources of

In short, it's not that simple.

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