diff options
author | fiaxh <git@lightrise.org> | 2020-10-07 22:14:00 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-10-07 22:16:41 +0200 |
commit | f28aaac6dae73d87ce85a6525a5491bd0cda7a52 (patch) | |
tree | d10755fc5255ee46f7609de74692f938e05e770c /main/src/ui | |
parent | d42918b0ab1d132ef1deee44ea6270c47b22d1ba (diff) | |
download | dino-f28aaac6dae73d87ce85a6525a5491bd0cda7a52.tar.gz dino-f28aaac6dae73d87ce85a6525a5491bd0cda7a52.zip |
Fix compilation for older vala compilers
Diffstat (limited to 'main/src/ui')
-rw-r--r-- | main/src/ui/conversation_content_view/file_widget.vala | 2 | ||||
-rw-r--r-- | main/src/ui/file_send_overlay.vala | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/main/src/ui/conversation_content_view/file_widget.vala b/main/src/ui/conversation_content_view/file_widget.vala index a965db47..9b748876 100644 --- a/main/src/ui/conversation_content_view/file_widget.vala +++ b/main/src/ui/conversation_content_view/file_widget.vala @@ -170,7 +170,7 @@ public class FileDefaultWidgetController : Object { try{ AppInfo.launch_default_for_uri(file_uri, null); } catch (Error err) { - print("Tried to open " + file_uri); + warning("Failed to open %s - %s", file_uri, err.message); } } break; diff --git a/main/src/ui/file_send_overlay.vala b/main/src/ui/file_send_overlay.vala index 39e57f80..e92cf836 100644 --- a/main/src/ui/file_send_overlay.vala +++ b/main/src/ui/file_send_overlay.vala @@ -48,13 +48,6 @@ public class FileSendOverlay : Gtk.EventBox { }); } - public void set_file_too_large() { - info_label.label= _("The file exceeds the server's maximum upload size."); - Util.force_error_color(info_label); - send_button.sensitive = false; - can_send = false; - } - private async void load_file_widget(File file, FileInfo file_info) { string file_name = file_info.get_display_name(); string mime_type = file_info.get_content_type(); @@ -87,6 +80,13 @@ public class FileSendOverlay : Gtk.EventBox { file_widget_insert.add(widget); } + + public void set_file_too_large() { + info_label.label= _("The file exceeds the server's maximum upload size."); + Util.force_error_color(info_label); + send_button.sensitive = false; + can_send = false; + } } } |