On Sun, 2004-04-11 at 07:31, Paul Pogonyshev wrote:
fielder cs ttu edu wrote:Should all widgets created be manually destroyed? The gtk_widget_destroy() and friends references do not go into much detail on it.When you destroy a widget, all its descendants (i.e. everything packed into it) is destroyed too, unless you keep an extra reference (with g_object_ref()). So, if you need to destroy anything at all, this will be top-level windows in most cases.
To be precise, if you keep an extra ref, the widget will still be destroyed, it just won't be freed until you release the extra reference. Regards, Owen
Attachment:
signature.asc
Description: This is a digitally signed message part