gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't

fail if iter is NULL. (#58347)
This commit is contained in:
Matthias Clasen 2001-08-08 07:42:21 +00:00
parent 4c44499b3f
commit d146290c53
8 changed files with 43 additions and 9 deletions

View File

@ -1,4 +1,9 @@
2001-08-07 <matthiasc@waldgeist.poet.de> 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
fail if iter is NULL. (#58347)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323) some off-by-one issues, fixing selection of line-ends. (#50323)

View File

@ -1,4 +1,9 @@
2001-08-07 <matthiasc@waldgeist.poet.de> 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
fail if iter is NULL. (#58347)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323) some off-by-one issues, fixing selection of line-ends. (#50323)

View File

@ -1,4 +1,9 @@
2001-08-07 <matthiasc@waldgeist.poet.de> 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
fail if iter is NULL. (#58347)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323) some off-by-one issues, fixing selection of line-ends. (#50323)

View File

@ -1,4 +1,9 @@
2001-08-07 <matthiasc@waldgeist.poet.de> 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
fail if iter is NULL. (#58347)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323) some off-by-one issues, fixing selection of line-ends. (#50323)

View File

@ -1,4 +1,9 @@
2001-08-07 <matthiasc@waldgeist.poet.de> 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
fail if iter is NULL. (#58347)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323) some off-by-one issues, fixing selection of line-ends. (#50323)

View File

@ -1,4 +1,9 @@
2001-08-07 <matthiasc@waldgeist.poet.de> 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
fail if iter is NULL. (#58347)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323) some off-by-one issues, fixing selection of line-ends. (#50323)

View File

@ -1,4 +1,9 @@
2001-08-07 <matthiasc@waldgeist.poet.de> 2001-08-08 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Don't
fail if iter is NULL. (#58347)
2001-08-07 Matthias Clasen <matthiasc@waldgeist.poet.de>
* gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix * gtk/gtktextdisplay.c (render_para, gtk_text_layout_draw): Fix
some off-by-one issues, fixing selection of line-ends. (#50323) some off-by-one issues, fixing selection of line-ends. (#50323)

View File

@ -609,8 +609,7 @@ gtk_tree_store_iter_n_children (GtkTreeModel *tree_model,
gint i = 0; gint i = 0;
g_return_val_if_fail (GTK_IS_TREE_STORE (tree_model), 0); g_return_val_if_fail (GTK_IS_TREE_STORE (tree_model), 0);
g_return_val_if_fail (iter != NULL, FALSE); g_return_val_if_fail (iter == NULL || iter->user_data != NULL, FALSE);
g_return_val_if_fail (iter->user_data != NULL, FALSE);
if (iter == NULL) if (iter == NULL)
node = G_NODE (GTK_TREE_STORE (tree_model)->root)->children; node = G_NODE (GTK_TREE_STORE (tree_model)->root)->children;