Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #157 from EPashkin/fix_use_glib
Browse files Browse the repository at this point in the history
Fix feature config
  • Loading branch information
GuillaumeGomez committed Oct 17, 2017
2 parents 0408d52 + 5b6ba10 commit fd2381d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pdf_surface.rs
Expand Up @@ -14,7 +14,7 @@ use ffi::enums::SurfaceType;

use surface::{Surface, SurfaceExt};

#[cfg(feature = "glib")]
#[cfg(feature = "use_glib")]
use glib::translate::*;

pub struct PDFSurface(Surface);
Expand Down Expand Up @@ -70,7 +70,7 @@ impl Clone for PDFSurface {

unsafe impl Send for PDFSurface {}

#[cfg(feature = "glib")]
#[cfg(feature = "use_glib")]
impl<'a> ToGlibPtr<'a, *mut ffi::cairo_surface_t> for PDFSurface {
type Storage = &'a Surface;

Expand All @@ -81,23 +81,23 @@ impl<'a> ToGlibPtr<'a, *mut ffi::cairo_surface_t> for PDFSurface {
}
}

#[cfg(feature = "glib")]
#[cfg(feature = "use_glib")]
impl FromGlibPtrNone<*mut ffi::cairo_surface_t> for PDFSurface {
#[inline]
unsafe fn from_glib_none(ptr: *mut ffi::cairo_surface_t) -> PDFSurface {
Self::from(from_glib_none(ptr)).unwrap()
}
}

#[cfg(feature = "glib")]
#[cfg(feature = "use_glib")]
impl FromGlibPtrBorrow<*mut ffi::cairo_surface_t> for PDFSurface {
#[inline]
unsafe fn from_glib_borrow(ptr: *mut ffi::cairo_surface_t) -> PDFSurface {
Self::from(from_glib_borrow(ptr)).unwrap()
}
}

#[cfg(feature = "glib")]
#[cfg(feature = "use_glib")]
impl FromGlibPtrFull<*mut ffi::cairo_surface_t> for PDFSurface {
#[inline]
unsafe fn from_glib_full(ptr: *mut ffi::cairo_surface_t) -> PDFSurface {
Expand Down

0 comments on commit fd2381d

Please sign in to comment.