[maemo-commits] [maemo-commits] r16393 - in projects/haf/trunk/gtk+: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Oct 15 11:45:50 EEST 2008
Author: csaavedra
Date: 2008-10-15 11:45:48 +0300 (Wed, 15 Oct 2008)
New Revision: 16393

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/gtktreeview.c
Log:
2008-10-15  Claudio Saavedra  <csaavedra at igalia.com>

	Fixes NB#89611: GtkTreeView: use of an uninitialized variable

	* gtk/gtktreeview.c: (determine_row_height),
	(initialize_fixed_height_mode): Initialize is_header properly. Patch
	by Kristian Rietveld.



Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2008-10-15 08:35:40 UTC (rev 16392)
+++ projects/haf/trunk/gtk+/ChangeLog	2008-10-15 08:45:48 UTC (rev 16393)
@@ -1,3 +1,11 @@
+2008-10-15  Claudio Saavedra  <csaavedra at igalia.com>
+
+	Fixes NB#89611: GtkTreeView: use of an uninitialized variable
+
+	* gtk/gtktreeview.c: (determine_row_height),
+	(initialize_fixed_height_mode): Initialize is_header properly. Patch
+	by Kristian Rietveld.
+
 2008-10-13  Claudio Saavedra  <csaavedra at igalia.com>
 
 	Fixes NB#89865: Remove Close-like buttons from GtkDialog

Modified: projects/haf/trunk/gtk+/gtk/gtktreeview.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtktreeview.c	2008-10-15 08:35:40 UTC (rev 16392)
+++ projects/haf/trunk/gtk+/gtk/gtktreeview.c	2008-10-15 08:45:48 UTC (rev 16393)
@@ -6894,7 +6894,7 @@
                       int          separator_height)
 {
   int height;
-  gboolean is_separator, is_header;
+  gboolean is_separator, is_header = FALSE;
 
   /* Determine the correct height for this node.  This is
    * analogous to what is found in validate_row().
@@ -7040,7 +7040,7 @@
       /* Search for the first regular row */
       while (node)
         {
-          gboolean is_header, is_separator;
+          gboolean is_header = FALSE, is_separator;
 
           is_separator = row_is_separator (tree_view, NULL, &is_header, path);
           if (!is_separator && !is_header)


More information about the maemo-commits mailing list