diff options
author | Paolo Borelli <pborelli@gnome.org> | 2019-12-31 12:08:13 +0100 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2020-01-06 11:13:52 +0100 |
commit | 6f745a31090a30dbba052c8f0e8453a0a0c0e89e (patch) | |
tree | 56abeed2578429c92e95097fd2524222c6c3dda5 /librsvg | |
parent | 9561d60a9daa74bef222928f007f92421b26b233 (diff) | |
download | librsvg-6f745a31090a30dbba052c8f0e8453a0a0c0e89e.tar.gz |
Update to the latest gtk-rs releases
Diffstat (limited to 'librsvg')
-rw-r--r-- | librsvg/Cargo.toml | 8 | ||||
-rw-r--r-- | librsvg/c_api.rs | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/librsvg/Cargo.toml b/librsvg/Cargo.toml index 55ae41e8..1f41d660 100644 --- a/librsvg/Cargo.toml +++ b/librsvg/Cargo.toml @@ -12,13 +12,13 @@ crate-type = [ "staticlib" ] [dependencies] bitflags = "1.0" -cairo-rs = { version="0.7.0", features=["v1_16"] } +cairo-rs = { version="0.8.0", features=["v1_16"] } cairo-sys-rs = "0.9.0" -gdk-pixbuf = "0.7.0" +gdk-pixbuf = "0.8.0" gdk-pixbuf-sys = "0.9.0" -glib = { version="0.8.0", features=["subclassing"] } +glib = "0.9.0" glib-sys = "0.9.0" -gio = { version="0.7.0", features=["v2_48"] } # per configure.ac +gio = { version="0.8.0", features=["v2_48"] } # per configure.ac gio-sys = "0.9.0" gobject-sys = "0.9.0" libc = "0.2" diff --git a/librsvg/c_api.rs b/librsvg/c_api.rs index 9c96e396..8f7d9172 100644 --- a/librsvg/c_api.rs +++ b/librsvg/c_api.rs @@ -389,22 +389,22 @@ impl ObjectImpl for CHandle { match *prop { subclass::Property("flags", ..) => { - let v: HandleFlags = value.get().expect("flags value has incorrect type"); + let v: HandleFlags = value.get_some().expect("flags value has incorrect type"); self.set_flags(v); } subclass::Property("dpi-x", ..) => { - let dpi_x: f64 = value.get().expect("dpi-x value has incorrect type"); + let dpi_x: f64 = value.get_some().expect("dpi-x value has incorrect type"); self.set_dpi_x(dpi_x); } subclass::Property("dpi-y", ..) => { - let dpi_y: f64 = value.get().expect("dpi-y value has incorrect type"); + let dpi_y: f64 = value.get_some().expect("dpi-y value has incorrect type"); self.set_dpi_y(dpi_y); } subclass::Property("base-uri", ..) => { - let v: Option<String> = value.get(); + let v: Option<String> = value.get().expect("base-uri value has incorrect type"); // rsvg_handle_set_base_uri() expects non-NULL URI strings, // but the "base-uri" property can be set to NULL due to a missing |