summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-10-27 12:53:47 -0400
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-10-30 17:35:21 +0900
commiteb60282b1b2037b31f07c0fc7c71883cb64474d8 (patch)
tree0708cc87fe4eb93dddc87c5a3037f17bf1c097c4 /gtk
parent2a37d949baff1557f161ee1baed5b632b1487489 (diff)
downloadgtk+-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.c4
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);
}
}