Don't fill the mime types if this is an AFS directory. (fill_in_names): If

2005-05-06  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
	types if this is an AFS directory.
	(fill_in_names): If we are in an AFS directory, set the MIME type
	blindly to "x-directory/normal".
This commit is contained in:
Federico Mena Quintero
2005-05-06 20:58:12 +00:00
committed by Federico Mena Quintero
parent 35f75bd340
commit d113df8c0a
4 changed files with 29 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
2005-05-06 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
types if this is an AFS directory.
(fill_in_names): If we are in an AFS directory, set the MIME type
blindly to "x-directory/normal".
2005-05-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always

View File

@@ -1,3 +1,10 @@
2005-05-06 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
types if this is an AFS directory.
(fill_in_names): If we are in an AFS directory, set the MIME type
blindly to "x-directory/normal".
2005-05-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always

View File

@@ -1,3 +1,10 @@
2005-05-06 Federico Mena Quintero <federico@ximian.com>
* gtk/gtkfilesystemunix.c (fill_in_mime_type): Don't fill the mime
types if this is an AFS directory.
(fill_in_names): If we are in an AFS directory, set the MIME type
blindly to "x-directory/normal".
2005-05-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c (gtk_notebook_insert_page_menu): Always

View File

@@ -1996,7 +1996,10 @@ fill_in_names (GtkFileFolderUnix *folder_unix, GError **error)
entry = g_new0 (struct stat_info_entry, 1);
if (folder_unix->is_network_dir)
entry->statbuf.st_mode = S_IFDIR;
{
entry->statbuf.st_mode = S_IFDIR;
entry->mime_type = g_strdup ("x-directory/normal");
}
g_hash_table_insert (folder_unix->stat_info,
g_strdup (basename),
@@ -2075,9 +2078,10 @@ fill_in_mime_type (GtkFileFolderUnix *folder_unix)
g_assert (folder_unix->stat_info != NULL);
g_hash_table_foreach_remove (folder_unix->stat_info,
cb_fill_in_mime_type,
folder_unix);
if (!folder_unix->is_network_dir)
g_hash_table_foreach_remove (folder_unix->stat_info,
cb_fill_in_mime_type,
folder_unix);
folder_unix->have_mime_type = TRUE;
}