From bd86af4e159e05229cae6b1bbfcf7d4d58727bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 5 Mar 2017 08:50:52 +0100 Subject: [PATCH] treeviewcolumn: Use gtk_widget_measure to measure widget sizes --- gtk/gtktreeviewcolumn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 9052ed3704..2e2d2a13fd 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -2049,7 +2049,8 @@ _gtk_tree_view_column_request_width (GtkTreeViewColumn *tree_column) gtk_cell_area_context_get_preferred_width (priv->cell_area_context, &requested_width, NULL); requested_width += priv->padding; - gtk_widget_get_preferred_width (priv->button, &button_request, NULL); + gtk_widget_measure (priv->button, GTK_ORIENTATION_HORIZONTAL, -1, + &button_request, NULL, NULL, NULL); real_requested_width = MAX (requested_width, button_request); } else