mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-13 04:51:15 +00:00
Add a cast to fix build for platforms where GnomeVFSFileSize is not
2006-02-21 Martin Wehner <martin.wehner@gmail.com> * libnautilus-private/nautilus-file.c: (nautilus_file_get_size_as_string_with_real_size): Add a cast to fix build for platforms where GnomeVFSFileSize is not defined as long long (e.g. AMD64). Fixes bug #331636.
This commit is contained in:
parent
1dff2b51a7
commit
d08b1966c7
|
@ -1,3 +1,10 @@
|
|||
2006-02-21 Martin Wehner <martin.wehner@gmail.com>
|
||||
|
||||
* libnautilus-private/nautilus-file.c:
|
||||
(nautilus_file_get_size_as_string_with_real_size):
|
||||
Add a cast to fix build for platforms where GnomeVFSFileSize
|
||||
is not defined as long long (e.g. AMD64). Fixes bug #331636.
|
||||
|
||||
2006-02-21 Alexander Larsson <alexl@redhat.com>
|
||||
|
||||
* src/file-manager/fm-error-reporting.[ch]:
|
||||
|
|
|
@ -4351,9 +4351,11 @@ nautilus_file_get_size_as_string_with_real_size (NautilusFile *file)
|
|||
if (nautilus_file_info_missing (file, GNOME_VFS_FILE_INFO_FIELDS_SIZE)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
formated = gnome_vfs_format_file_size_for_display (file->details->info->size);
|
||||
formated_plus_real = g_strdup_printf (_("%s (%lld bytes)"), formated, file->details->info->size);
|
||||
/* FIXME: We should use GNOME_VFS_SIZE_FORMAT_STR instead of the explicit format here. */
|
||||
formated_plus_real = g_strdup_printf (_("%s (%lld bytes)"), formated,
|
||||
(long long) file->details->info->size);
|
||||
g_free (formated);
|
||||
return formated_plus_real;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue