gtk+ r19712 - in trunk: . gtk
- From: kristian svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19712 - in trunk: . gtk
- Date: Wed, 5 Mar 2008 10:36:36 +0000 (GMT)
Author: kristian
Date: Wed Mar 5 10:36:35 2008
New Revision: 19712
URL: http://svn.gnome.org/viewvc/gtk+?rev=19712&view=rev
Log:
2008-03-05 Kristian Rietveld <kris imendio com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_row_inserted):
short-circuit in case an empty root level would be build (and thus
directly destroyed) if no virtual root has been set.
Modified:
trunk/ChangeLog
trunk/gtk/gtktreemodelfilter.c
Modified: trunk/gtk/gtktreemodelfilter.c
==============================================================================
--- trunk/gtk/gtktreemodelfilter.c (original)
+++ trunk/gtk/gtktreemodelfilter.c Wed Mar 5 10:36:35 2008
@@ -1373,6 +1373,11 @@
if (!filter->priv->root)
{
+ /* No point in building the level if this node is not visible. */
+ if (!filter->priv->virtual_root
+ && !gtk_tree_model_filter_visible (filter, c_iter))
+ goto done;
+
/* build level will pull in the new child */
gtk_tree_model_filter_build_level (filter, NULL, NULL, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]