2008-04-07 Sven Herzberg <sven@imendio.com>
authorSven Herzberg <herzi@imendio.com>
Mon, 7 Apr 2008 11:33:19 +0000 (11:33 +0000)
committerSven Herzberg <herzi@imendio.com>
Mon, 7 Apr 2008 11:33:19 +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: changed the arguments of the if()
conditions

ChangeLog
src/hildon-date-editor.c

index efdffb9..641fcbe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,14 @@
        Prepares: NB#78896: libhildon code inspection/coverity: uninitialised
        local values in hildon_date_editor_size_allocate
 
+       * src/hildon-date-editor.c: changed the arguments of the if()
+       conditions
+
+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
 
index f6062a9..2c60010 100644 (file)
@@ -1299,7 +1299,7 @@ hildon_date_editor_size_allocate                (GtkWidget *widget,
         MAX (allocation->width - max_req.width, 0) / 2;
 
     /* allocate frame */
-    if (GTK_WIDGET_VISIBLE (priv->frame)) {
+    if (GTK_WIDGET_VISIBLE (widget)) {
         gtk_widget_get_child_requisition (priv->frame, &req);
 
         f_alloc.width = req.width;
@@ -1307,7 +1307,7 @@ hildon_date_editor_size_allocate                (GtkWidget *widget,
     }
 
     /* allocate icon */
-    if (GTK_WIDGET_VISIBLE (priv->d_button_image)) {
+    if (GTK_WIDGET_VISIBLE (widget)) {
         gtk_widget_get_child_requisition (priv->d_button_image,
                 &req);