Bug 543989 - Crash in gtk_tree_view_size_allocate_columns

2008-07-21  Kristian Rietveld  <kris@gtk.org>

	Bug 543989 - Crash in gtk_tree_view_size_allocate_columns

	* gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): check
	for width_changed != NULL.  (Patch by Josselin Mouette).


svn path=/trunk/; revision=20883
This commit is contained in:
Kristian Rietveld 2008-07-21 13:32:05 +00:00 committed by Kristian Rietveld
parent b8a2347c45
commit fd4a8411f0
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-07-21 Kristian Rietveld <kris@gtk.org>
Bug 543989 - Crash in gtk_tree_view_size_allocate_columns
* gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): check
for width_changed != NULL. (Patch by Josselin Mouette).
2008-07-21 Michael Natterer <mitch@imendio.com>
Bug 442042 GtkScaleButton is too limited

View File

@ -2319,7 +2319,8 @@ gtk_tree_view_size_allocate_columns (GtkWidget *widget,
* so the total width of the tree view changes.
*/
tree_view->priv->width = width;
*width_changed = TRUE;
if (width_changed)
*width_changed = TRUE;
if (column_changed)
gtk_widget_queue_draw (GTK_WIDGET (tree_view));