[gtk+/wip/baedert/drawing: 312/355] headerbar: don't measure own size
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 312/355] headerbar: don't measure own size
- Date: Tue, 11 Jul 2017 16:54:33 +0000 (UTC)
commit 8afec681d371171fa360772422e64775fec1d3fa
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]