From 2ac8ebe9f78fd4e1e057337c2f9d491f5aab0c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 20 May 2017 14:18:11 +0200 Subject: [PATCH] treeview: default to width_changed = TRUE Checking the given GtkAllocation against the current allocation insize ::size-allocate doesn't really work anymore. They are only different if the content allocation (the one passed) and the widget allocation (the current one) are different, so e.g. when the widget has padding >0 applied. --- gtk/gtktreeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index b9af41bd74..21d10d6c4e 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -2602,7 +2602,7 @@ gtk_tree_view_size_allocate (GtkWidget *widget, { GtkTreeView *tree_view = GTK_TREE_VIEW (widget); GList *tmp_list; - gboolean width_changed = FALSE; + gboolean width_changed = TRUE; gint old_width; double page_size;