[gtk+] label: minimum/natural size parameters are not nullable



commit 4ae6f10ae9decc45c0da54b21895b693bd7bbc6f
Author: Timm Bäder <mail baedert org>
Date:   Tue May 3 16:07:50 2016 -0400

    label: minimum/natural size parameters are not nullable
    
    Stop comparing them to NULL.

 gtk/gtklabel.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 1089242..5607c91 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3641,11 +3641,8 @@ get_size_for_allocation (GtkLabel *label,
 
   pango_layout_get_pixel_size (layout, NULL, &text_height);
 
-  if (minimum_size)
-    *minimum_size = text_height;
-
-  if (natural_size)
-    *natural_size = text_height;
+  *minimum_size = text_height;
+  *natural_size = text_height;
 
   if (minimum_baseline || natural_baseline)
     {


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