summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnome.org>2004-03-08 17:33:26 +0000
committerAnders Carlsson <andersca@src.gnome.org>2004-03-08 17:33:26 +0000
commit597084473498a0c27e5a7a700b22caa88188e506 (patch)
tree4ca3b0ab4e0d3ad71a7d70f2c64c5e8315b12395 /gtk/gtkfilesystemmodel.c
parentd558abfe5125483f73d0718e9d24a6961f175c72 (diff)
downloadgdk-pixbuf-597084473498a0c27e5a7a700b22caa88188e506.tar.gz
If max_depth is 0 then we have a list.
2004-03-08 Anders Carlsson <andersca@gnome.org> * gtk/gtkfilesystemmodel.c (gtk_file_system_model_get_flags): If max_depth is 0 then we have a list.
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r--gtk/gtkfilesystemmodel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index 4a14f41dd..79e08674c 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -315,7 +315,7 @@ gtk_file_system_model_get_flags (GtkTreeModel *tree_model)
GtkFileSystemModel *model = GTK_FILE_SYSTEM_MODEL (tree_model);
GtkTreeModelFlags flags = GTK_TREE_MODEL_ITERS_PERSIST;
- if (model->max_depth == 1)
+ if (model->max_depth == 0)
flags |= GTK_TREE_MODEL_LIST_ONLY;
return flags;