Only show the "Format" menuitem if gfloppy is found

This commit is contained in:
Matthias Clasen 2005-10-21 14:44:50 +00:00
parent 9bbc0a175e
commit 7bb907e0e4
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-10-21 Matthias Clasen <mclasen@redhat.com>
* src/file-manager/fm-directory-view.c: Only show
the "Format" item if gfloppy is around.
2005-10-21 Matthias Clasen <mclasen@redhat.com>
* src/file-manager/fm-actions.h:

View file

@ -6532,7 +6532,8 @@ file_should_show_foreach (NautilusFile *file,
*show_mount = TRUE;
}
if (gnome_vfs_drive_get_device_type (drive) == GNOME_VFS_DEVICE_TYPE_FLOPPY) {
if (gnome_vfs_drive_get_device_type (drive) == GNOME_VFS_DEVICE_TYPE_FLOPPY &&
g_find_program_in_path ("gfloppy")) {
*show_format = TRUE;
}
} else if (nautilus_file_is_nautilus_link (file)) {