Yes, memory is allocated when you do a gtk_*_new() call. Memory is deleted when the refcount of the object goes to zero, an example of this is when it's parent is deleted and there are no other references to the object. So all you really have to do is call gtk_object_destroy(object) on the main window and everything will be happy.
Later, Chris On Mon, 2001-09-03 at 20:06, Deekshit Mantampady wrote: > > Hi all, > > I have one doubt. I want to know when we do a gtk_...._new(), to > create a new widget or window, whether memory is allocated or not? If > memory is allocated at that time, when it will be deleted? I have a > window with some widgets in it. I want to delete all the allocated > memory when the window is closed(suppose I am using a function called > "close_my_window" as the callback for close button widget in the > window). Can any body help me on this subject. > > > > Thanking you in advance > Deekshit M > > > > ---- > > >---------------------------------------------------------------------------------------------------------------------- > Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers >and > is intended for use only by the individual or entity to which it is > addressed, and may contain information that is privileged, confidential or > exempt from disclosure under applicable law. If you are not the intended > recipient or it appears that this mail has been forwarded to you without > proper authority, you are notified that any use or dissemination of this > information in any manner is strictly prohibited. In such cases, please > notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail > from your records. > >---------------------------------------------------------------------------------------------------------------------- > -- http://glimmer.sourceforge.net - My pet project http://uberhackers.dhs.org - My personal website ./configure --prefix=/dev/mocha --enable-caffeine _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
