2009/3/23 John Emmas <john...@tiscali.co.uk>: > Thanks guys, > > I've been following a (pretty well respected) book about GTK development but > it only seems to use gtk_widget_destroy() for dialog boxes. For example, a > dialog box might get created using gtk_dialog_new_with_buttons() and > eventually gets destroyed with gtk_widget_destroy(). But elsewhere in the > examples, other dialog elements get created using (say) gtk_label_new() or > gtk_hbox_new() or whatever - but none of them ever seem to get freed. Also, > the main window (created using gtk_window_new() ) never gets freed either, > in any of the examples. > > Even quite complex items, such as file chooser dialogs and color selection > dialogs get liberally created in the examples but never freed anywhere. Do > GTK dialogs and top level windows automatically look after their child > windows or should I have looked a bit harder when I was buying the book?? > > John > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list >
Hello. I'm no expert at those things, but during my coding with gtk I learned some things about memory management that I described in this forum post. You may find it useful quick-start introduction into official gobject and gtk documentation. http://gtkforums.com/viewtopic.php?t=2412 -- Tadej Borovšak tadeb...@gmail.com tadej.borov...@gmail.com _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list