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.
This commit is contained in:
Richard Hult 2002-02-26 15:14:42 +00:00 committed by Richard Hult
parent 1ab0dcf514
commit 23558e0a3b
8 changed files with 48 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,3 +1,9 @@
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.

View File

@ -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);