[gtk+] expander: Use gtk_widget_measure
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] expander: Use gtk_widget_measure
- Date: Sat, 18 Feb 2017 18:10:16 +0000 (UTC)
commit 4c942429888a768eb0aff01ba424c78e4c99ea2d
Author: Timm Bäder <mail baedert org>
Date: Sat Feb 18 11:10:16 2017 +0100
expander: Use gtk_widget_measure
gtk/gtkexpander.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 45286a1..b786d6f 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -934,7 +934,8 @@ gtk_expander_resize_toplevel (GtkExpander *expander)
{
GtkRequisition child_requisition;
- gtk_widget_get_preferred_height_for_width (child, child_allocation.width,
&child_requisition.height, NULL);
+ gtk_widget_measure (child, GTK_ORIENTATION_VERTICAL, child_allocation.width,
+ &child_requisition.height, NULL, NULL, NULL);
toplevel_allocation.height += child_requisition.height;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]