[gtk+] treeview: Don't allocate columns outside of size_allocate()



commit 61ecd102408189edf23bf88c8182cd129950aeb4
Author: Benjamin Otte <otte redhat com>
Date:   Sun Nov 12 05:38:58 2017 +0100

    treeview: Don't allocate columns outside of size_allocate()

 gtk/gtktreeview.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 8ccdff2..06fff46 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -11760,11 +11760,7 @@ gtk_tree_view_move_column_after (GtkTreeView       *tree_view,
 
   gtk_tree_view_update_button_position (tree_view, column);
 
-  if (gtk_widget_get_realized (GTK_WIDGET (tree_view)))
-    {
-      gtk_widget_queue_resize (GTK_WIDGET (tree_view));
-      gtk_tree_view_size_allocate_columns (GTK_WIDGET (tree_view));
-    }
+  gtk_widget_queue_resize (GTK_WIDGET (tree_view));
 
   _gtk_tree_view_accessible_reorder_column (tree_view, column);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]