diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-12-14 02:14:19 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-12-14 02:14:19 +0000 |
commit | 50329fa7c00938d9aea14751f0367903386a730a (patch) | |
tree | 4ae708a06ba4089266040bfc310848169b105b05 /gtk/gtkfilesystemmodel.c | |
parent | d68d9790df7ded822e318908a4d7c0639c9f7d6f (diff) | |
download | gtk+-50329fa7c00938d9aea14751f0367903386a730a.tar.gz |
Privately export this method. It classifies directories and mountables the
* gtk/gtkfilesystem.[hc] (_gtk_file_info_consider_as_directory):
Privately export this method. It classifies directories and mountables
the same.
* gtk/gtkfilesystem.c (enclosing_volume_mount_cb): Silently drop
G_IO_ERROR_ALREADY_MOUNTED error for gvfs backends without visible
mounts.
* gtk/gtkfilesystemmodel.c:
* gtk/gtkfilechooserbutton.c:
* gtk/gtkfilechooserentry.c:
* gtk/gtkfilechooserdefault.c: Use the new function instead of
direct checks for G_FILE_TYPE_DIRECTORY throughout.
svn path=/trunk/; revision=21898
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index 9536d0fa74..79eb10c25b 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -444,7 +444,7 @@ gtk_file_system_model_iter_has_child (GtkTreeModel *tree_model, else { GFileInfo *info = file_model_node_get_info (model, node); - return (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY); + return _gtk_file_info_consider_as_directory (info); } } @@ -1330,7 +1330,7 @@ file_model_node_is_visible (GtkFileSystemModel *model, return FALSE; } - is_folder = (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY); + is_folder = _gtk_file_info_consider_as_directory (info); if (model->show_folders != model->show_files && model->show_folders != is_folder) @@ -1553,7 +1553,7 @@ file_model_node_get_children (GtkFileSystemModel *model, { GFileInfo *info = file_model_node_get_info (model, node); gboolean has_children = FALSE; - gboolean is_folder = (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY); + gboolean is_folder = _gtk_file_info_consider_as_directory (info); file_model_node_idle_clear_cancel (node); |