Commit 23558e0a authored by Richard Hult's avatar Richard Hult Committed by Richard Hult

Fix #72586. Silently accept empty tree. (gtk_tree_view_collapse_all):

2002-02-26  Richard Hult  <rhult@codefactory.se>

	* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
	#72586. Silently accept empty tree.
	(gtk_tree_view_collapse_all): Likewise.
parent 1ab0dcf5
2002-02-26 Richard Hult <rhult@codefactory.se>
* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
#72586. Silently accept empty tree.
(gtk_tree_view_collapse_all): Likewise.
2002-02-26 Tor Lillqvist <tml@iki.fi>
* gtk/gtk.def: A couple of name changes.
......
2002-02-26 Richard Hult <rhult@codefactory.se>
* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
#72586. Silently accept empty tree.
(gtk_tree_view_collapse_all): Likewise.
2002-02-26 Tor Lillqvist <tml@iki.fi>
* gtk/gtk.def: A couple of name changes.
......
2002-02-26 Richard Hult <rhult@codefactory.se>
* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
#72586. Silently accept empty tree.
(gtk_tree_view_collapse_all): Likewise.
2002-02-26 Tor Lillqvist <tml@iki.fi>
* gtk/gtk.def: A couple of name changes.
......
2002-02-26 Richard Hult <rhult@codefactory.se>
* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
#72586. Silently accept empty tree.
(gtk_tree_view_collapse_all): Likewise.
2002-02-26 Tor Lillqvist <tml@iki.fi>
* gtk/gtk.def: A couple of name changes.
......
2002-02-26 Richard Hult <rhult@codefactory.se>
* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
#72586. Silently accept empty tree.
(gtk_tree_view_collapse_all): Likewise.
2002-02-26 Tor Lillqvist <tml@iki.fi>
* gtk/gtk.def: A couple of name changes.
......
2002-02-26 Richard Hult <rhult@codefactory.se>
* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
#72586. Silently accept empty tree.
(gtk_tree_view_collapse_all): Likewise.
2002-02-26 Tor Lillqvist <tml@iki.fi>
* gtk/gtk.def: A couple of name changes.
......
2002-02-26 Richard Hult <rhult@codefactory.se>
* gtk/gtktreeview.c (gtk_tree_view_expand_all): Fix
#72586. Silently accept empty tree.
(gtk_tree_view_collapse_all): Likewise.
2002-02-26 Tor Lillqvist <tml@iki.fi>
* gtk/gtk.def: A couple of name changes.
......
......@@ -8368,7 +8368,9 @@ void
gtk_tree_view_expand_all (GtkTreeView *tree_view)
{
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
g_return_if_fail (tree_view->priv->tree != NULL);
if (tree_view->priv->tree == NULL)
return;
_gtk_rbtree_traverse (tree_view->priv->tree,
tree_view->priv->tree->root,
......@@ -8462,7 +8464,9 @@ gtk_tree_view_collapse_all (GtkTreeView *tree_view)
guint *indices;
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
g_return_if_fail (tree_view->priv->tree != NULL);
if (tree_view->priv->tree == NULL)
return;
path = gtk_tree_path_new ();
gtk_tree_path_down (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