[gtk+] treeview: Actually remove presize handler when we presize
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Actually remove presize handler when we presize
- Date: Mon, 24 Jun 2013 18:20:04 +0000 (UTC)
commit f54e37a23b23535d2c5eedb916f395f2fe3582ef
Author: Benjamin Otte <otte redhat com>
Date: Mon Jun 24 19:38:08 2013 +0200
treeview: Actually remove presize handler when we presize
Avoids multiple calls to it.
gtk/gtktreeview.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index a058416..b189f94 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]