[gtk+] headerbar: Fix size requisition variable mixup



commit c71c3954f4b343423492ea79bcab513978475e2d
Author: Timm Bäder <mail baedert org>
Date:   Fri Mar 17 18:49:52 2017 +0100

    headerbar: Fix size requisition variable mixup
    
    Happened when porting to gtk_widget_measure.

 gtk/gtkheaderbar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 3ca1894..95c59bc 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -856,7 +856,7 @@ gtk_header_bar_compute_size_for_opposing_orientation (GtkWidget *widget,
   if (priv->titlebar_start_box != NULL)
     {
       gtk_widget_measure (priv->titlebar_start_box, GTK_ORIENTATION_VERTICAL, -1,
-                          &center_min, &center_nat, NULL, NULL);
+                          &child_minimum, &child_natural, NULL, NULL);
 
       computed_minimum = MAX (computed_minimum, child_minimum);
       computed_natural = MAX (computed_natural, child_natural);
@@ -865,7 +865,7 @@ gtk_header_bar_compute_size_for_opposing_orientation (GtkWidget *widget,
   if (priv->titlebar_end_box != NULL)
     {
       gtk_widget_measure (priv->titlebar_end_box, GTK_ORIENTATION_VERTICAL, -1,
-                          &center_min, &center_nat, NULL, NULL);
+                          &child_minimum, &child_natural, NULL, NULL);
 
       computed_minimum = MAX (computed_minimum, child_minimum);
       computed_natural = MAX (computed_natural, child_natural);


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