[gtk+] headerbar: don't measure own size
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] headerbar: don't measure own size
- Date: Thu, 20 Jul 2017 01:55:39 +0000 (UTC)
commit a8561bcc990a62452dc3b1ef70bf7ac327ced870
Author: Timm Bäder <mail baedert org>
Date: Fri Jun 30 11:49:41 2017 +0200
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.
gtk/gtkheaderbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index f4bcda6..e415a4c 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]