diff options
author | Jonathan Blandford <jrb@gnome.org> | 2002-07-05 17:25:16 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2002-07-05 17:25:16 +0000 |
commit | e05a96609d5f3c2725ab2a7a35438cd2c6aed8c2 (patch) | |
tree | e82a398783f8953d56829991f53e9d9454d6cc15 /gtk/gtktreemodel.c | |
parent | c9bd72a3bfcca6360361e16f58486374e44820e4 (diff) | |
download | gdk-pixbuf-e05a96609d5f3c2725ab2a7a35438cd2c6aed8c2.tar.gz |
fix warning. (gtk_tree_view_search_iter): fix warning, #85884
Fri Jul 5 02:50:24 2002 Jonathan Blandford <jrb@gnome.org>
* gtk/gtktreeview.c (gtk_tree_view_collapse_all): fix warning.
(gtk_tree_view_search_iter): fix warning, #85884
* gtk/gtktreestore.c (gtk_tree_store_get_flags): change return
value to GtkTreeModelFlags to fix compiler warning, #85883
* gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags): change
return value to GtkTreeModelFlags to fix compiler warning, #85882
* gtk/gtktreemodel.c (gtk_tree_path_prepend_index): fix compiler
warning, #85881
Diffstat (limited to 'gtk/gtktreemodel.c')
-rw-r--r-- | gtk/gtktreemodel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index e1b7030f7..a749cec3d 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -284,7 +284,11 @@ void gtk_tree_path_prepend_index (GtkTreePath *path, gint index) { - gint *new_indices = g_new (gint, ++path->depth); + gint *new_indices; + + (path->depth)++; + new_indices = g_new (gint, path->depth); + if (path->indices == NULL) { path->indices = new_indices; |