aboutsummaryrefslogtreecommitdiffstats
path: root/packages/gtk+/gtk+-2.6.4-1.osso7/gtktreemodelfilter.c.diff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gtk+/gtk+-2.6.4-1.osso7/gtktreemodelfilter.c.diff
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.bz2
openembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.zip
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gtk+/gtk+-2.6.4-1.osso7/gtktreemodelfilter.c.diff')
-rw-r--r--packages/gtk+/gtk+-2.6.4-1.osso7/gtktreemodelfilter.c.diff52
1 files changed, 52 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.6.4-1.osso7/gtktreemodelfilter.c.diff b/packages/gtk+/gtk+-2.6.4-1.osso7/gtktreemodelfilter.c.diff
index e69de29bb2..af2d495a86 100644
--- a/packages/gtk+/gtk+-2.6.4-1.osso7/gtktreemodelfilter.c.diff
+++ b/packages/gtk+/gtk+-2.6.4-1.osso7/gtktreemodelfilter.c.diff
@@ -0,0 +1,52 @@
+--- gtk+-2.6.4/gtk/gtktreemodelfilter.c 2005-02-24 16:43:53.000000000 +0200
++++ gtk+-2.6.4/gtk/gtktreemodelfilter.c 2005-04-06 16:19:38.177734464 +0300
+@@ -1210,14 +1210,22 @@
+ if (gtk_tree_path_get_depth (filter->priv->virtual_root) >=
+ gtk_tree_path_get_depth (c_path))
+ {
+- gint level;
++ gint level, i;
+ gint *v_indices, *c_indices;
++ gboolean common_prefix = TRUE;
+
+ level = gtk_tree_path_get_depth (c_path) - 1;
+ v_indices = gtk_tree_path_get_indices (filter->priv->virtual_root);
+ c_indices = gtk_tree_path_get_indices (c_path);
+
+- if (v_indices[level] >= c_indices[level])
++ for (i = 0; i < level; i++)
++ if (v_indices[i] != c_indices[i])
++ {
++ common_prefix = FALSE;
++ break;
++ }
++
++ if (common_prefix && v_indices[level] >= c_indices[level])
+ (v_indices[level])++;
+ }
+ }
+@@ -1455,14 +1463,22 @@
+ if (gtk_tree_path_get_depth (filter->priv->virtual_root) >=
+ gtk_tree_path_get_depth (c_path))
+ {
+- gint level;
++ gint level, i;
+ gint *v_indices, *c_indices;
++ gboolean common_prefix = TRUE;
+
+ level = gtk_tree_path_get_depth (c_path) - 1;
+ v_indices = gtk_tree_path_get_indices (filter->priv->virtual_root);
+ c_indices = gtk_tree_path_get_indices (c_path);
+
+- if (v_indices[level] > c_indices[level])
++ for (i = 0; i < level; i++)
++ if (v_indices[i] != c_indices[i])
++ {
++ common_prefix = FALSE;
++ break;
++ }
++
++ if (common_prefix && v_indices[level] > c_indices[level])
+ (v_indices[level])--;
+ }
+ }