cargo: Update glycin

This commit is contained in:
Sophie Herold 2024-07-18 01:51:51 +02:00
parent 3f3f366819
commit 0811a14198
4 changed files with 7 additions and 7 deletions

View file

@ -77,13 +77,13 @@ impl UpdateSender {
/// Send occurring errors to renderer
pub fn spawn_error_handled<F>(&self, f: F) -> glib::JoinHandle<()>
where
F: std::future::Future<Output = Result<(), glycin::Error>> + Send + 'static,
F: std::future::Future<Output = Result<(), glycin::ErrorCtx>> + Send + 'static,
{
let update_sender = self.clone();
glib::spawn_future(async move {
let update_sender = update_sender.clone();
let result: Result<(), glycin::Error> = f.await;
let result: Result<(), glycin::ErrorCtx> = f.await;
if let Err(err) = result {
if err.unsupported_format().is_some() {

View file

@ -210,7 +210,7 @@ impl LpImagePage {
let image = self.image();
if image.is_unsupported() {
let message = if glycin::supported_loader_mime_types().await.is_empty() {
let message = if glycin::Loader::supported_mime_types().await.is_empty() {
// Translators: {} is replace with a version number
gettext_f(
"No image loaders available. Maybe the “glycin-loaders” package with compatibility version “{}+” is not installed.",
@ -220,7 +220,7 @@ impl LpImagePage {
let content_type = gio::content_type_from_mime_type(&mime_type).unwrap_or_default();
let description = gio::content_type_get_description(&content_type).to_string();
if glycin::DEFAULT_MIME_TYPES.contains(&mime_type.as_str()) {
if glycin::Loader::DEFAULT_MIME_TYPES.contains(&mime_type.as_str()) {
// Translators: The first occurance of {} is replace with a description of the
// format and the second with an id (mime-type) of the format.
gettext_f(

View file

@ -513,7 +513,7 @@ impl LpWindow {
let filter_supported_formats = gtk::FileFilter::new();
filter_supported_formats.set_name(Some(&gettext("Supported image formats")));
for mime_type in glycin::supported_loader_mime_types().await {
for mime_type in glycin::Loader::supported_mime_types().await {
filter_supported_formats.add_mime_type(mime_type.as_str());
}