From e4ec38b32d6ffc4112891e606704e4537ee2ea6c Mon Sep 17 00:00:00 2001 From: Martin Vidner Date: Tue, 5 Dec 2023 14:33:18 +0100 Subject: [PATCH] Fix LocaleProxy writable properties Same issue as in #712: zbus-xmlgen generates a proxy for setting a writable property but forgets to mark it as a property, generating a method call instead (I fixed zbus-xmlgen in August but they haven't released a crate since June) --- rust/agama-lib/src/proxies.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/agama-lib/src/proxies.rs b/rust/agama-lib/src/proxies.rs index 1731330acf..4fe309f987 100644 --- a/rust/agama-lib/src/proxies.rs +++ b/rust/agama-lib/src/proxies.rs @@ -98,21 +98,25 @@ trait Locale { /// Keymap property #[dbus_proxy(property)] fn keymap(&self) -> zbus::Result; + #[dbus_proxy(property)] fn set_keymap(&self, value: &str) -> zbus::Result<()>; /// Locales property #[dbus_proxy(property)] fn locales(&self) -> zbus::Result>; + #[dbus_proxy(property)] fn set_locales(&self, value: &[&str]) -> zbus::Result<()>; /// Timezone property #[dbus_proxy(property)] fn timezone(&self) -> zbus::Result; + #[dbus_proxy(property)] fn set_timezone(&self, value: &str) -> zbus::Result<()>; /// UILocale property #[dbus_proxy(property, name = "UILocale")] fn uilocale(&self) -> zbus::Result; + #[dbus_proxy(property)] fn set_uilocale(&self, value: &str) -> zbus::Result<()>; }