From f54e37a23b23535d2c5eedb916f395f2fe3582ef Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 24 Jun 2013 19:38:08 +0200 Subject: [PATCH] treeview: Actually remove presize handler when we presize Avoids multiple calls to it. --- gtk/gtktreeview.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index a058416f73..b189f94984 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -6832,7 +6832,11 @@ do_presize_handler (GtkTreeView *tree_view) tree_view->priv->mark_rows_col_dirty = FALSE; } validate_visible_area (tree_view); - tree_view->priv->presize_handler_tick_cb = 0; + if (tree_view->priv->presize_handler_tick_cb != 0) + { + gtk_widget_remove_tick_callback (GTK_WIDGET (tree_view), tree_view->priv->presize_handler_tick_cb); + tree_view->priv->presize_handler_tick_cb = 0; + } if (tree_view->priv->fixed_height_mode) {