[gtk+] treeviewcolumn: Use gtk_widget_measure to measure widget sizes



commit bd86af4e159e05229cae6b1bbfcf7d4d58727bbf
Author: Timm Bäder <mail baedert org>
Date:   Sun Mar 5 08:50:52 2017 +0100

    treeviewcolumn: Use gtk_widget_measure to measure widget sizes

 gtk/gtktreeviewcolumn.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 9052ed3..2e2d2a1 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


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