Re: Why is there no gtk_window_free() ?



2009/3/23 John Emmas <johne53 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
tadeboro gmail com
tadej borovsak gmail com



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