diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-10-27 12:53:47 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-10-30 17:35:21 +0900 |
commit | eb60282b1b2037b31f07c0fc7c71883cb64474d8 (patch) | |
tree | 0708cc87fe4eb93dddc87c5a3037f17bf1c097c4 /gtk | |
parent | 2a37d949baff1557f161ee1baed5b632b1487489 (diff) | |
download | gtk+-eb60282b1b2037b31f07c0fc7c71883cb64474d8.tar.gz |
Fix gtk_fixed_get_preferred_width
When dealing with widths, use x, not y.
Spotted by Ignacio Casal Quintero.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkfixed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c index abdeb54aa5..cf9fb20dfe 100644 --- a/gtk/gtkfixed.c +++ b/gtk/gtkfixed.c @@ -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); } } |