Do not call invalidate_empty_focus() when not realized

Fixes bug 626503
This commit is contained in:
Xavier Claessens 2011-04-16 20:12:39 +02:00 committed by Kristian Rietveld
parent e3ce60cc2d
commit 00fa4a2fc0

View File

@ -2839,10 +2839,10 @@ gtk_tree_view_size_allocate (GtkWidget *widget,
gtk_tree_view_get_effective_header_height (tree_view),
MAX (tree_view->priv->width, allocation->width),
allocation->height - gtk_tree_view_get_effective_header_height (tree_view));
}
if (tree_view->priv->tree == NULL)
invalidate_empty_focus (tree_view);
if (tree_view->priv->tree == NULL)
invalidate_empty_focus (tree_view);
}
if (gtk_widget_get_realized (widget))
{