Don't emit a warning if a parent node is filtered out. (#164726, Olivier

2005-02-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
	Don't emit a warning if a parent node is filtered out. (#164726,
	Olivier Sessink)
This commit is contained in:
Matthias Clasen 2005-02-24 14:42:26 +00:00 committed by Matthias Clasen
parent 09239601fd
commit 9eb636fe12
4 changed files with 23 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-02-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
Don't emit a warning if a parent node is filtered out. (#164726,
Olivier Sessink)
2005-02-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_style_set): Revert the last

View File

@ -1,3 +1,9 @@
2005-02-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
Don't emit a warning if a parent node is filtered out. (#164726,
Olivier Sessink)
2005-02-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_style_set): Revert the last

View File

@ -1,3 +1,9 @@
2005-02-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_changed):
Don't emit a warning if a parent node is filtered out. (#164726,
Olivier Sessink)
2005-02-23 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_style_set): Revert the last

View File

@ -1132,15 +1132,18 @@ gtk_tree_model_filter_row_changed (GtkTreeModel *c_model,
}
}
gtk_tree_model_filter_increment_stamp (filter);
if (!path)
path = gtk_real_tree_model_filter_convert_child_path_to_path (filter,
c_path,
TRUE,
TRUE);
g_return_if_fail (path != NULL);
if (!path)
/* parent is probably being filtered out */
goto done;
gtk_tree_model_filter_increment_stamp (filter);
gtk_tree_model_get_iter (GTK_TREE_MODEL (filter), &iter, path);
level = FILTER_LEVEL (iter.user_data);