Fix compilation for older vala compilers
This commit is contained in:
parent
d42918b0ab
commit
f28aaac6da
|
@ -170,7 +170,7 @@ public class FileDefaultWidgetController : Object {
|
||||||
try{
|
try{
|
||||||
AppInfo.launch_default_for_uri(file_uri, null);
|
AppInfo.launch_default_for_uri(file_uri, null);
|
||||||
} catch (Error err) {
|
} catch (Error err) {
|
||||||
print("Tried to open " + file_uri);
|
warning("Failed to open %s - %s", file_uri, err.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -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) {
|
private async void load_file_widget(File file, FileInfo file_info) {
|
||||||
string file_name = file_info.get_display_name();
|
string file_name = file_info.get_display_name();
|
||||||
string mime_type = file_info.get_content_type();
|
string mime_type = file_info.get_content_type();
|
||||||
|
@ -87,6 +80,13 @@ public class FileSendOverlay : Gtk.EventBox {
|
||||||
|
|
||||||
file_widget_insert.add(widget);
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue