Commit 4ee9b210 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

clear all viewable cell renderers so they don't keep pointers to

2004-12-10  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainertreeview.c
	(gimp_container_tree_view_clear_items): clear all viewable cell
	renderers so they don't keep pointers to layers/masks which don't
	exist any more. Fixes the additional problem in bug #148852 but
	not the bug itself.
parent dc3cca1b
2004-12-10 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainertreeview.c
(gimp_container_tree_view_clear_items): clear all viewable cell
renderers so they don't keep pointers to layers/masks which don't
exist any more. Fixes the additional problem in bug #148852 but
not the bug itself.
2004-12-09 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/core/gimpbrushpipe.c (gimp_brush_pipe_select_brush):
......
......@@ -694,6 +694,20 @@ gimp_container_tree_view_clear_items (GimpContainerView *view)
gtk_list_store_clear (GTK_LIST_STORE (tree_view->model));
#ifdef __GNUC__
#warning FIXME: remove this hack as soon as bug #149906 is fixed
#endif
/* clear out renderers from all cells so they don't keep refing the
* viewables
*/
if (! gtk_tree_model_iter_n_children (tree_view->model, NULL))
{
GList *list;
for (list = tree_view->renderer_cells; list; list = g_list_next (list))
g_object_set (list->data, "renderer", NULL, NULL);
}
parent_view_iface->clear_items (view);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment