gtk+ r19712 - in trunk: . gtk



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]