[gtk+/treeview-refactor] Fix gtk_fixed_get_preferred_width
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Fix gtk_fixed_get_preferred_width
- Date: Sat, 30 Oct 2010 08:34:47 +0000 (UTC)
commit eb60282b1b2037b31f07c0fc7c71883cb64474d8
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]