cargo: Update glycin version
This commit is contained in:
parent
e4ee49c2a1
commit
3f1c247f41
5 changed files with 184 additions and 282 deletions
|
|
@ -48,7 +48,7 @@ impl Glycin {
|
|||
let (next_frame_send, next_frame_recv) = async_channel::bounded(2);
|
||||
|
||||
updater.clone().spawn_error_handled(async move {
|
||||
let mut image_request = glycin::ImageRequest::new(file);
|
||||
let mut image_request = glycin::Loader::new(file);
|
||||
|
||||
#[cfg(feature = "disable-glycin-sandbox")]
|
||||
image_request.sandbox_mechanism(Some(glycin::SandboxMechanism::NotSandboxed));
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ impl Svg {
|
|||
let (wakeup, wakeup_resv) = mpsc::unbounded();
|
||||
|
||||
updater.clone().spawn_error_handled(async move {
|
||||
let mut image_request = glycin::ImageRequest::new(file);
|
||||
let mut image_request = glycin::Loader::new(file);
|
||||
|
||||
#[cfg(feature = "disable-glycin-sandbox")]
|
||||
image_request.sandbox_mechanism(Some(glycin::SandboxMechanism::NotSandboxed));
|
||||
|
|
@ -174,7 +174,7 @@ impl Svg {
|
|||
|
||||
pub fn render_print(file: &gio::File, width: i32, height: i32) -> anyhow::Result<gdk::Texture> {
|
||||
#[allow(unused_mut)]
|
||||
let mut image_request = glycin::ImageRequest::new(file.clone());
|
||||
let mut image_request = glycin::Loader::new(file.clone());
|
||||
|
||||
#[cfg(feature = "disable-glycin-sandbox")]
|
||||
image_request.sandbox_mechanism(Some(glycin::SandboxMechanism::NotSandboxed));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue