Commit b5eed72f authored by Kristian Rietveld's avatar Kristian Rietveld Committed by Kristian Rietveld

do allow for invalidated nodes if the tree view is not realized. (#363147,

2007-01-05  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow for
	invalidated nodes if the tree view is not realized. (#363147,
	Carlos Garnacho, Miguel Cabrera).


svn path=/trunk/; revision=17089
parent 9ee7338f
2007-01-05 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow for
invalidated nodes if the tree view is not realized. (#363147,
Carlos Garnacho, Miguel Cabrera).
2007-01-05 Matthias Clasen <mclasen@redhat.com> 2007-01-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
......
...@@ -8056,11 +8056,6 @@ gtk_tree_view_row_changed (GtkTreeModel *model, ...@@ -8056,11 +8056,6 @@ gtk_tree_view_row_changed (GtkTreeModel *model,
g_return_if_fail (path != NULL || iter != NULL); g_return_if_fail (path != NULL || iter != NULL);
if (!GTK_WIDGET_REALIZED (tree_view))
/* We can just ignore ::changed signals if we aren't realized, as we don't care about sizes
*/
return;
if (tree_view->priv->cursor != NULL) if (tree_view->priv->cursor != NULL)
cursor_path = gtk_tree_row_reference_get_path (tree_view->priv->cursor); cursor_path = gtk_tree_row_reference_get_path (tree_view->priv->cursor);
else else
...@@ -8097,7 +8092,8 @@ gtk_tree_view_row_changed (GtkTreeModel *model, ...@@ -8097,7 +8092,8 @@ gtk_tree_view_row_changed (GtkTreeModel *model,
&& tree_view->priv->fixed_height >= 0) && tree_view->priv->fixed_height >= 0)
{ {
_gtk_rbtree_node_set_height (tree, node, tree_view->priv->fixed_height); _gtk_rbtree_node_set_height (tree, node, tree_view->priv->fixed_height);
gtk_tree_view_node_queue_redraw (tree_view, tree, node); if (GTK_WIDGET_REALIZED (tree_view))
gtk_tree_view_node_queue_redraw (tree_view, tree, node);
} }
else else
{ {
...@@ -8118,7 +8114,7 @@ gtk_tree_view_row_changed (GtkTreeModel *model, ...@@ -8118,7 +8114,7 @@ gtk_tree_view_row_changed (GtkTreeModel *model,
} }
done: done:
if (!tree_view->priv->fixed_height_mode) if (GTK_WIDGET_REALIZED (tree_view) && !tree_view->priv->fixed_height_mode)
install_presize_handler (tree_view); install_presize_handler (tree_view);
if (free_path) if (free_path)
gtk_tree_path_free (path); gtk_tree_path_free (path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment