2008-04-07 Sven Herzberg <sven@imendio.com>
authorSven Herzberg <herzi@imendio.com>
Mon, 7 Apr 2008 11:33:15 +0000 (11:33 +0000)
committerSven Herzberg <herzi@imendio.com>
Mon, 7 Apr 2008 11:33:15 +0000 (11:33 +0000)
Prepares: NB#78896: libhildon code inspection/coverity: uninitialised
local values in hildon_date_editor_size_allocate

* src/hildon-date-editor.c: split the calculation of the allocation
from the real allocation

ChangeLog
src/hildon-date-editor.c

index 68afea1..efdffb9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-04-07  Sven Herzberg  <sven@imendio.com>
+
+       Prepares: NB#78896: libhildon code inspection/coverity: uninitialised
+       local values in hildon_date_editor_size_allocate
+
+       * src/hildon-date-editor.c: split the calculation of the allocation
+       from the real allocation
+
 2008-03-27  Michael Natterer  <mitch@imendio.com>
 
        Fixes: NB#81696: The passcode is not overwritten even after
index 4fa5d7d..f6062a9 100644 (file)
@@ -1320,6 +1320,9 @@ hildon_date_editor_size_allocate                (GtkWidget *widget,
             img_alloc.x = f_alloc.x;
             f_alloc.x  += img_alloc.width + HILDON_MARGIN_DEFAULT;
         }
+    }
+
+    if (GTK_WIDGET_VISIBLE (priv->d_button_image)) {
         gtk_widget_size_allocate (priv->d_button_image, &img_alloc);
     }