[glade] * gladeui/glade-design-layout.c: fixed allocation bug. It was using height instead of width.



commit 3355230f14ebba13ef332a3a3841688f8cc5bfed
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Tue Mar 15 18:08:46 2011 -0300

     * gladeui/glade-design-layout.c: fixed allocation bug.
       It was using height instead of width.

 ChangeLog                     |    5 +++++
 gladeui/glade-design-layout.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index baab8b4..5db0d92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-15  Juan Pablo Ugarte <juanpablougarte gmail com>
+
+	* gladeui/glade-design-layout.c: fixed allocation bug.
+	  It was using height instead of width.
+
 2011-03-11  Tristan Van Berkom <tristanvb openismus com>
 
 	* plugins/gtk+/icons/...: Added/Updated icons for GtkSizeGroup, GtkStatusIcon, Gtk*Filter
diff --git a/gladeui/glade-design-layout.c b/gladeui/glade-design-layout.c
index 73791d3..1108f42 100644
--- a/gladeui/glade-design-layout.c
+++ b/gladeui/glade-design-layout.c
@@ -376,7 +376,7 @@ glade_design_layout_get_preferred_width (GtkWidget *widget,
 
       g_object_get (gchild, "toplevel-width", &child_width, NULL);
 
-      child_width = MAX (child_width, req.height);
+      child_width = MAX (child_width, req.width);
 
       *minimum = MAX (*minimum, 2*PADDING + 2*OUTLINE_WIDTH + child_width);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]