[librsvg: 10/45] SvgHandle: store a Session, too
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 10/45] SvgHandle: store a Session, too
- Date: Wed, 24 Aug 2022 01:56:36 +0000 (UTC)
commit 23dc7b1a254237eb85f1e54319e1772dc164fd81
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Aug 19 15:27:56 2022 -0500
SvgHandle: store a Session, too
It gets passed when the Loader creates the SvgHandle.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/731>
src/api.rs | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/api.rs b/src/api.rs
index 7a35123b0..c63fa9ea4 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -218,6 +218,7 @@ impl Loader {
stream.as_ref(),
cancellable.map(|c| c.as_ref()),
)?,
+ session: self.session,
})
}
}
@@ -231,6 +232,7 @@ fn url_from_file(file: &gio::File) -> Result<Url, LoadingError> {
/// You can create this from one of the `read` methods in
/// [`Loader`].
pub struct SvgHandle {
+ session: Arc<Session>,
pub(crate) handle: Handle,
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]