[maemo-commits] [maemo-commits] r15351 - in projects/haf/trunk/hildon-1: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Apr 7 14:33:17 EEST 2008
Author: herzi
Date: 2008-04-07 14:33:15 +0300 (Mon, 07 Apr 2008)
New Revision: 15351

Modified:
   projects/haf/trunk/hildon-1/ChangeLog
   projects/haf/trunk/hildon-1/src/hildon-date-editor.c
Log:
2008-04-07  Sven Herzberg  <sven at 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


Modified: projects/haf/trunk/hildon-1/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-1/ChangeLog	2008-04-04 11:21:03 UTC (rev 15350)
+++ projects/haf/trunk/hildon-1/ChangeLog	2008-04-07 11:33:15 UTC (rev 15351)
@@ -1,3 +1,11 @@
+2008-04-07  Sven Herzberg  <sven at 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 at imendio.com>
 
 	Fixes: NB#81696: The passcode is not overwritten even after

Modified: projects/haf/trunk/hildon-1/src/hildon-date-editor.c
===================================================================
--- projects/haf/trunk/hildon-1/src/hildon-date-editor.c	2008-04-04 11:21:03 UTC (rev 15350)
+++ projects/haf/trunk/hildon-1/src/hildon-date-editor.c	2008-04-07 11:33:15 UTC (rev 15351)
@@ -1320,6 +1320,9 @@
             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);
     }
 


More information about the maemo-commits mailing list