handle::load_image_to_surface() - Renamed from image_surface_new_from_href()

parent 390f9f0d
......@@ -127,7 +127,7 @@ impl Image {
};
// FIXME: translate the error better here
let surface = handle::image_surface_new_from_href(self.handle.get() as *mut _, url)
let surface = handle::load_image_to_surface(self.handle.get() as *mut _, url)
.map_err(|_| FilterError::InvalidInput)?;
let output_surface = ImageSurface::create(
......
......@@ -109,7 +109,7 @@ fn keep_image_data(handle: *const RsvgHandle) -> bool {
unsafe { from_glib(rsvg_handle_keep_image_data(handle)) }
}
pub fn image_surface_new_from_href(
pub fn load_image_to_surface(
handle: *mut RsvgHandle,
href_str: &str,
) -> Result<ImageSurface, LoadingError> {
......
......@@ -73,7 +73,7 @@ impl NodeTrait for NodeImage {
*self.surface.borrow_mut() = Some(
// FIXME: translate the error better here
handle::image_surface_new_from_href(handle as *mut _, value)
handle::load_image_to_surface(handle as *mut _, value)
.map_err(|_| NodeError::value_error(attr, "could not load image"))?,
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment