[gedit] overlay: use the natural size request instead of the minimum



commit 607719022f86c4c9ebb85dc1531e5db29ad29de7
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Feb 24 20:58:09 2011 -0500

    overlay: use the natural size request instead of the minimum
    
    So that we don't break e.g. ellipsizable labels.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=643258

 gedit/gedit-overlay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gedit/gedit-overlay.c b/gedit/gedit-overlay.c
index bad7825..380f108 100644
--- a/gedit/gedit-overlay.c
+++ b/gedit/gedit-overlay.c
@@ -211,7 +211,7 @@ gedit_overlay_size_allocate (GtkWidget     *widget,
 		if (child == priv->main_widget)
 			continue;
 
-		gtk_widget_get_preferred_size (child, &req, NULL);
+		gtk_widget_get_preferred_size (child, NULL, &req);
 		offset = gedit_overlay_child_get_offset (GEDIT_OVERLAY_CHILD (child));
 
 		/* FIXME: Add all the positions here */



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