Re: GtkTreeView questions
- From: Brett Nash <nash nash nu>
- To: Yves Kurz <shorty kurz-technik ch>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkTreeView questions
- Date: Tue, 31 Dec 2002 13:43:31 +1100
1. How is it working with freeing the resources of a widget?
I'm doing this:
store = >store = gtk_list_store_new (n_cols, G_TYPE_BOOLEAN);
view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
is a simple gtk_widget_destroy (GTK_WIDGET (view)) enough to free the
store (with all it's content) and the view?
It should be. I'm not 100% sure about the content - but that should be
as well. In any case tree_view_new_with_model takes the floating
reference (and sinks it) and takes a proper reference. When you
destroy the view, the model will then be destroyed as it has not
references.
Regards,
nash
--
Brett Nash <nash nash nu>
Sometimes it's better to light a flamethrower than curse the darkness.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]