From 3c14c67a38db5ef124fa53c6d7a40ef272b9b229 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 5 Nov 2024 12:58:15 +0100 Subject: [PATCH] shell-rs: Use RefCell::replace rather than glib::Property::set Since glib-macros 0.20.3, the glib::Property::set method now requires to be explicitly imported. As .set() is a wrapper around RefCell::replace, we can instead simply just call .replace() directly. Thanks to msandova for the idea how to best fix it! This regressed with https://github.com/gtk-rs/gtk-rs-core/commit/795e2c5d25d45442c1f77ddabda21370365ccc45 Fixes https://gitlab.gnome.org/GNOME/Incubator/papers/-/issues/278 --- shell-rs/src/sidebar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-rs/src/sidebar.rs b/shell-rs/src/sidebar.rs index 0d3443967..1e83d7a2d 100644 --- a/shell-rs/src/sidebar.rs +++ b/shell-rs/src/sidebar.rs @@ -101,7 +101,7 @@ mod imp { } )); - self.model.set(Some(model)); + self.model.replace(Some(model)); } fn document(&self) -> Option { -- 2.47.0