Problem with change to gtk_tree_store_iter_children()
- From: "Padraig O'Briain" <Padraig Obriain Sun COM>
- To: gtk-devel-list gnome org
- Subject: Problem with change to gtk_tree_store_iter_children()
- Date: Tue, 22 Jan 2002 09:03:26 +0000 (GMT)
The latest change to this file causes me a problem as I am calling
gtk_tree_store_iter_children() with parent being NULL.
The following change works better for me.
May I commit?
Padraig
Index: gtktreestore.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtktreestore.c,v
retrieving revision 1.72
diff -u -p -r1.72 gtktreestore.c
--- gtktreestore.c 2002/01/22 00:21:40 1.72
+++ gtktreestore.c 2002/01/22 09:02:50
@@ -658,7 +658,7 @@ gtk_tree_store_iter_children (GtkTreeMod
GNode *children;
g_return_val_if_fail (parent == NULL || parent->user_data != NULL, FALSE);
- g_return_val_if_fail (parent->stamp == GTK_TREE_STORE (tree_model)->stamp,
FALSE);
+ g_return_val_if_fail (parent == NULL || parent->stamp == GTK_TREE_STORE
(tree_model)->stamp, FALSE);
if (parent)
children = G_NODE (parent->user_data)->children;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]