[gedit-code-assistance/wip/gedit-3-8] Get also the natural_height to avoid a crash.



commit cf6c57a69f60469d8c9a2cd51abc73693a44cb36
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date:   Sun Feb 3 21:57:58 2013 +0100

    Get also the natural_height to avoid a crash.

 src/gcp-diagnostic-message.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcp-diagnostic-message.vala b/src/gcp-diagnostic-message.vala
index 1ec3c37..e5ca553 100644
--- a/src/gcp-diagnostic-message.vala
+++ b/src/gcp-diagnostic-message.vala
@@ -341,7 +341,8 @@ public class DiagnosticMessage : EventBox
 			width = minwidth;
 		}
 
-		base.get_preferred_height_for_width(width, out d_height, null);
+		int natural_height;
+		base.get_preferred_height_for_width(width, out d_height, out natural_height);
 		d_width = width;
 
 		int yc = alignyat - d_height * aligny;



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