diff options
Diffstat (limited to 'main/src/ui/conversation_content_view/file_default_widget.vala')
-rw-r--r-- | main/src/ui/conversation_content_view/file_default_widget.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/conversation_content_view/file_default_widget.vala b/main/src/ui/conversation_content_view/file_default_widget.vala index 352c8d7a..02249b3f 100644 --- a/main/src/ui/conversation_content_view/file_default_widget.vala +++ b/main/src/ui/conversation_content_view/file_default_widget.vala @@ -39,7 +39,7 @@ public class FileDefaultWidget : Box { }); } - public void update_file_info(string? mime_type, FileTransfer.State state, long size) { + public void update_file_info(string? mime_type, FileTransfer.State state, int64 size) { this.state = state; spinner.stop(); // A hidden spinning spinner still uses CPU. Deactivate asap @@ -132,7 +132,7 @@ public class FileDefaultWidget : Box { } } - private static string get_size_string(long size) { + public static string get_size_string(int64 size) { if (size < 1024) { return @"$(size) B"; } else if (size < 1000 * 1000) { |