[gtk+/native-layout] Fixed do_size_request() to start with a 0 base requisition instead of -1



commit eb537a6773e9436e4aae6cd8274f9132aa2c2ff2
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Apr 5 17:57:06 2010 -0400

    Fixed do_size_request() to start with a 0 base requisition instead of -1

 gtk/gtksizegroup.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index 96772ee..ca28d89 100644
--- a/gtk/gtksizegroup.c
+++ b/gtk/gtksizegroup.c
@@ -676,6 +676,8 @@ do_size_request (GtkWidget *widget)
 
       /* Now get the extended layout minimum and natural size
        */
+      extended_minimum.width  = 0;
+      extended_minimum.height = 0;
       gtk_extended_layout_get_desired_size (GTK_EXTENDED_LAYOUT (widget),
                                             &extended_minimum,
                                             &aux_info->natural_size);



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