summaryrefslogtreecommitdiff
path: root/gtk/gtkheaderbar.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-06-30 11:49:41 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:15 -0400
commita8561bcc990a62452dc3b1ef70bf7ac327ced870 (patch)
tree8d71b85794e262eba1474cc24e5947fdc5827c26 /gtk/gtkheaderbar.c
parente25e1c54a44264de628fb3919fb47afd44e21ba5 (diff)
downloadgtk+-a8561bcc990a62452dc3b1ef70bf7ac327ced870.tar.gz
headerbar: don't measure own size
This is fallout from an earlier commit, we should be checking the child's size of course, not repeatedly the headerbar's.
Diffstat (limited to 'gtk/gtkheaderbar.c')
-rw-r--r--gtk/gtkheaderbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index f4bcda6481..e415a4c2f1 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -701,7 +701,7 @@ gtk_header_bar_compute_size_for_orientation (GtkWidget *widget,
if (gtk_widget_get_visible (child->widget))
{
- gtk_widget_measure (widget, GTK_ORIENTATION_HORIZONTAL, avail_size,
+ gtk_widget_measure (child->widget, GTK_ORIENTATION_HORIZONTAL, avail_size,
&child_size, &child_natural, NULL, NULL);
required_size += child_size;