[gtk+/kill-size-request] Fix gtk_fixed_get_preferred_width
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/kill-size-request] Fix gtk_fixed_get_preferred_width
- Date: Wed, 27 Oct 2010 16:55:07 +0000 (UTC)
commit a84b81d4feff24063ac5dfd3561a33b20d97909d
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 27 12:53:47 2010 -0400
Fix gtk_fixed_get_preferred_width
When dealing with widths, use x, not y.
Spotted by Ignacio Casal Quintero.
gtk/gtkfixed.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfixed.c b/gtk/gtkfixed.c
index abdeb54..cf9fb20 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]