summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-12 05:38:58 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-12 05:38:58 +0100
commit61ecd102408189edf23bf88c8182cd129950aeb4 (patch)
treee560750e25b859289651eb05fd584112d4fc7ad3 /gtk
parent5db1aa54010843b4cbe5cd0970c62e73d37216b4 (diff)
downloadgtk+-61ecd102408189edf23bf88c8182cd129950aeb4.tar.gz
treeview: Don't allocate columns outside of size_allocate()
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktreeview.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 8ccdff2470..06fff46fe5 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);