[gtk+] Avoid recursive calls to gtk_tree_view_top_row_to_dy()
- From: Kristian Rietveld <kristian src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid recursive calls to gtk_tree_view_top_row_to_dy()
- Date: Sun, 6 Sep 2009 18:26:25 +0000 (UTC)
commit f77042aae2e33e99e2824058ff516b114d01b78a
Author: Kristian Rietveld <kris gtk org>
Date: Sun Sep 6 20:23:05 2009 +0200
Avoid recursive calls to gtk_tree_view_top_row_to_dy()
Commit 3f306a40422e367ef03b9e6f6c80dec9fc932602 made it possible for
gtk_tree_view_top_row_to_dy() to be called recursively. (In a different
way than was already guarded for). This caused a single test case in
the scrolling test suite to fail. We now also guard for recursive calls at
the beginning of gtk_tree_view_top_row_to_dy().
gtk/gtktreeview.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 665720f..a0fdf33 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -6432,6 +6432,10 @@ gtk_tree_view_top_row_to_dy (GtkTreeView *tree_view)
GtkRBNode *node;
int new_dy;
+ /* Avoid recursive calls */
+ if (tree_view->priv->in_top_row_to_dy)
+ return;
+
if (tree_view->priv->top_row)
path = gtk_tree_row_reference_get_path (tree_view->priv->top_row);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]