]> Pileus Git - ~andy/gtk/commitdiff
Fix gtk_fixed_get_preferred_width
authorMatthias Clasen <mclasen@redhat.com>
Wed, 27 Oct 2010 16:53:47 +0000 (12:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 27 Oct 2010 16:53:47 +0000 (12:53 -0400)
When dealing with widths, use x, not y.
Spotted by Ignacio Casal Quintero.

gtk/gtkfixed.c

index abdeb54aa5f33dfca0aa73b0631f79781f44b5cf..cf9fb20dfe8c5a63b65de1da8149fe54bbf80e9e 100644 (file)
@@ -337,8 +337,8 @@ gtk_fixed_get_preferred_width (GtkWidget *widget,
 
       gtk_widget_get_preferred_width (child->widget, &child_min, &child_nat);
 
-      *minimum = MAX (*minimum, child->y + child_min);
-      *natural = MAX (*natural, child->y + child_nat);
+      *minimum = MAX (*minimum, child->x + child_min);
+      *natural = MAX (*natural, child->x + child_nat);
     }
 }