treeview: Actually remove presize handler when we presize

Avoids multiple calls to it.
This commit is contained in:
Benjamin Otte 2013-06-24 19:38:08 +02:00
parent ea4e88df86
commit f54e37a23b

View File

@ -6832,7 +6832,11 @@ do_presize_handler (GtkTreeView *tree_view)
tree_view->priv->mark_rows_col_dirty = FALSE; tree_view->priv->mark_rows_col_dirty = FALSE;
} }
validate_visible_area (tree_view); validate_visible_area (tree_view);
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; tree_view->priv->presize_handler_tick_cb = 0;
}
if (tree_view->priv->fixed_height_mode) if (tree_view->priv->fixed_height_mode)
{ {