[librsvg/librsvg-2.44] Oops, we just need the cairo::prelude for SurfaceExt
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.44] Oops, we just need the cairo::prelude for SurfaceExt
- Date: Thu, 14 Mar 2019 23:22:18 +0000 (UTC)
commit 91bc6e946492b1552799c3b4970fde7c7f0126c4
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 14 17:21:45 2019 -0600
Oops, we just need the cairo::prelude for SurfaceExt
rsvg_internals/src/surface_utils/mod.rs | 20 --------------------
1 file changed, 20 deletions(-)
---
diff --git a/rsvg_internals/src/surface_utils/mod.rs b/rsvg_internals/src/surface_utils/mod.rs
index 7c5a5836..06d54a47 100644
--- a/rsvg_internals/src/surface_utils/mod.rs
+++ b/rsvg_internals/src/surface_utils/mod.rs
@@ -2,8 +2,6 @@
use std::ops::DerefMut;
use cairo;
-use cairo_sys;
-use glib::translate::*;
pub mod iterators;
pub mod shared_surface;
@@ -98,21 +96,3 @@ impl Pixel {
impl<'a> ImageSurfaceDataExt for cairo::ImageSurfaceData<'a> {}
impl<'a> ImageSurfaceDataExt for &'a mut [u8] {}
-
-// FIXME: cairo-rs forgot to export its own SurfaceExt with the status() method
-// and others: https://github.com/gtk-rs/cairo/issues/252
-//
-// Remove the following when cairo-rs gets fixed.
-pub trait SurfaceExt {
- fn status(&self) -> cairo::Status;
-}
-
-impl SurfaceExt for cairo::Surface {
- fn status(&self) -> cairo::Status {
- unsafe {
- let raw_surface = self.to_glib_none();
-
- cairo_sys::cairo_surface_status(raw_surface.0).into()
- }
- }
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]