diff options
author | Timm Bäder <mail@baedert.org> | 2017-03-05 08:50:52 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-03-05 09:24:41 +0100 |
commit | bd86af4e159e05229cae6b1bbfcf7d4d58727bbf (patch) | |
tree | 557e1c5197018e01fbd881bac0e6c7cb51ffde62 /gtk | |
parent | a8ac6fe8de80023638478c6e64025999dcbf4c32 (diff) | |
download | gtk+-bd86af4e159e05229cae6b1bbfcf7d4d58727bbf.tar.gz |
treeviewcolumn: Use gtk_widget_measure to measure widget sizes
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |