mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
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
This commit is contained in:
parent
9ee7338f60
commit
b5eed72f24
@ -1,3 +1,9 @@
|
|||||||
|
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,
|
|||||||
|
|
||||||
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,6 +8092,7 @@ 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);
|
||||||
|
if (GTK_WIDGET_REALIZED (tree_view))
|
||||||
gtk_tree_view_node_queue_redraw (tree_view, tree, node);
|
gtk_tree_view_node_queue_redraw (tree_view, tree, node);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user